From 25558dfba63051012d467dd7f40fb50921f6ae89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sun, 30 Jan 2022 12:51:51 +0100 Subject: [PATCH] Fix: Remove ResolvedToRootSchema --- CHANGELOG.md | 13 +++++- src/Exception/ResolvedToRootSchema.php | 27 ------------ .../Exception/ResolvedToRootSchemaTest.php | 42 ------------------- test/Unit/SchemaValidatorTest.php | 1 - 4 files changed, 12 insertions(+), 71 deletions(-) delete mode 100644 src/Exception/ResolvedToRootSchema.php delete mode 100644 test/Unit/Exception/ResolvedToRootSchemaTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 22e4fc4a..f2626835 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), For a full diff see [`2.0.0...main`][2.0.0...main]. +## [`3.0.0`][3.0.0] + +For a full diff see [`2.0.0...3.0.0`][2.0.0...3.0.0]. + ### Changed - Required [`ergebnis/json-pointer`](https://github.com/ergebnis/json-pointer) ([#195]), by [@localheinz] - Started throwing an `Exception\CanNotResolve` exception instead of an `Exception\ResolvedToRootSchema` when the `JsonPointer` is not a valid URI fragment identifier representation of a JSON pointer ([#202]), by [@localheinz] +### Removed + +- Removed `Exception\ResolvedToRootSchema` ([#203]), by [@localheinz] + ## [`2.0.0`][2.0.0] For a full diff see [`1.0.0...2.0.0`][1.0.0...2.0.0]. @@ -49,10 +57,12 @@ For a full diff see [`dcd4cfb...1.0.0`][dcd4cfb...1.0.0]. [1.0.0]: https://github.com/ergebnis/json-schema-validator/releases/tag/1.0.0 [2.0.0]: https://github.com/ergebnis/json-schema-validator/releases/tag/2.0.0 +[3.0.0]: https://github.com/ergebnis/json-schema-validator/releases/tag/3.0.0 [dcd4cfb...1.0.0]: https://github.com/ergebnis/json-schema-validator/compare/dcd4cfb...1.0.0 [1.0.0...2.0.0]: https://github.com/ergebnis/json-schema-validator/compare/1.0.0...2.0.0 -[2.0.0...main]: https://github.com/ergebnis/json-schema-validator/compare/2.0.0...main +[2.0.0...3.0.0]: https://github.com/ergebnis/json-schema-validator/compare/2.0.0...3.0.0 +[3.0.0...main]: https://github.com/ergebnis/json-schema-validator/compare/3.0.0...main [#2]: https://github.com/ergebnis/json-schema-validator/pull/2 [#3]: https://github.com/ergebnis/json-schema-validator/pull/3 @@ -73,5 +83,6 @@ For a full diff see [`dcd4cfb...1.0.0`][dcd4cfb...1.0.0]. [#172]: https://github.com/ergebnis/json-schema-validator/pull/172 [#195]: https://github.com/ergebnis/json-schema-validator/pull/195 [#202]: https://github.com/ergebnis/json-schema-validator/pull/202 +[#203]: https://github.com/ergebnis/json-schema-validator/pull/203 [@localheinz]: https://github.com/localheinz diff --git a/src/Exception/ResolvedToRootSchema.php b/src/Exception/ResolvedToRootSchema.php deleted file mode 100644 index 861e6d91..00000000 --- a/src/Exception/ResolvedToRootSchema.php +++ /dev/null @@ -1,27 +0,0 @@ -toString(), - )); - } -} diff --git a/test/Unit/Exception/ResolvedToRootSchemaTest.php b/test/Unit/Exception/ResolvedToRootSchemaTest.php deleted file mode 100644 index 2990d458..00000000 --- a/test/Unit/Exception/ResolvedToRootSchemaTest.php +++ /dev/null @@ -1,42 +0,0 @@ -toString(), - ); - - self::assertSame($expected, $exception->getMessage()); - } -} diff --git a/test/Unit/SchemaValidatorTest.php b/test/Unit/SchemaValidatorTest.php index c419d415..91dcd9ad 100644 --- a/test/Unit/SchemaValidatorTest.php +++ b/test/Unit/SchemaValidatorTest.php @@ -28,7 +28,6 @@ * @covers \Ergebnis\Json\SchemaValidator\SchemaValidator * * @uses \Ergebnis\Json\SchemaValidator\Exception\CanNotResolve - * @uses \Ergebnis\Json\SchemaValidator\Exception\ResolvedToRootSchema * @uses \Ergebnis\Json\SchemaValidator\Json * @uses \Ergebnis\Json\SchemaValidator\JsonPointer * @uses \Ergebnis\Json\SchemaValidator\Message