Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Remove SchemaValidator #597

Merged
merged 1 commit into from
Dec 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ For a full diff see [`1.0.3...main`][1.0.3...main].
- Updated `justinrainbow/json-schema` ([#517]), by [@dependabot]
- Stopped sorting the newly added `allow-plugins` configuration ([#590]), by [@dependabot]

### Removed

- Removed `Validator\Result`, `Valdiator\SchemaValidator`, and `Validator\SchemaValidatorInterface` ([#597]), by [@dependabot]

## [`1.0.3`][1.0.3]

For a full diff see [`1.0.2...1.0.3`][1.0.2...1.0.3].
Expand Down Expand Up @@ -429,6 +433,7 @@ For a full diff see [`5d8b3e2...0.1.0`][5d8b3e2...0.1.0].
[#589]: https://github.com/ergebnis/json-normalizer/pull/589
[#590]: https://github.com/ergebnis/json-normalizer/pull/590
[#595]: https://github.com/ergebnis/json-normalizer/pull/595
[#597]: https://github.com/ergebnis/json-normalizer/pull/597

[@BackEndTea]: https://github.com/BackEndTea
[@dependabot]: https://github.com/dependabot
Expand Down
4 changes: 2 additions & 2 deletions infection.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"logs": {
"text": ".build/infection/infection-log.txt"
},
"minCoveredMsi": 88,
"minMsi": 87,
"minCoveredMsi": 92,
"minMsi": 91,
"phpUnit": {
"configDir": "test\/Unit"
},
Expand Down
26 changes: 0 additions & 26 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@
<code>$value</code>
</MixedAssignment>
</file>
<file src="src/Validator/SchemaValidator.php">
<MixedInferredReturnType occurrences="1">
<code>bool</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>$this-&gt;validator-&gt;isValid()</code>
</MixedReturnStatement>
</file>
<file src="src/Vendor/Composer/ConfigHashNormalizer.php">
<MixedArgument occurrences="2">
<code>$value</code>
Expand Down Expand Up @@ -153,24 +145,6 @@
<code>isFile</code>
</MixedMethodCall>
</file>
<file src="test/Unit/Validator/SchemaValidatorTest.php">
<MixedArgument occurrences="6">
<code>$data</code>
<code>$data</code>
<code>$data</code>
<code>$schema</code>
<code>$schema</code>
<code>$schema</code>
</MixedArgument>
<MixedAssignment occurrences="6">
<code>$data</code>
<code>$data</code>
<code>$data</code>
<code>$schema</code>
<code>$schema</code>
<code>$schema</code>
</MixedAssignment>
</file>
<file src="test/Unit/Vendor/Composer/AbstractComposerTestCase.php">
<MixedInferredReturnType occurrences="1">
<code>\Generator&lt;array&lt;string&gt;&gt;</code>
Expand Down
51 changes: 0 additions & 51 deletions src/Validator/Result.php

This file was deleted.

93 changes: 0 additions & 93 deletions src/Validator/SchemaValidator.php

This file was deleted.

35 changes: 0 additions & 35 deletions src/Validator/SchemaValidatorInterface.php

This file was deleted.

2 changes: 0 additions & 2 deletions test/Unit/SchemaNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
* @uses \Ergebnis\Json\Normalizer\Exception\SchemaUriReferencesDocumentWithInvalidMediaTypeException
* @uses \Ergebnis\Json\Normalizer\Exception\SchemaUriReferencesInvalidJsonDocumentException
* @uses \Ergebnis\Json\Normalizer\Json
* @uses \Ergebnis\Json\Normalizer\Validator\Result
* @uses \Ergebnis\Json\Normalizer\Validator\SchemaValidator
*/
final class SchemaNormalizerTest extends AbstractNormalizerTestCase
{
Expand Down
52 changes: 0 additions & 52 deletions test/Unit/Validator/ResultTest.php

This file was deleted.