We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3332d44 commit 1bcbb79Copy full SHA for 1bcbb79
src/Converters/JsonConverter.php
@@ -41,7 +41,7 @@ public function __construct(string|array $json, SchemaVersion $schemaVersion)
41
/** @var array<int|string, mixed>|string $decoded */
42
$decoded = json_decode($json, true, flags: JSON_THROW_ON_ERROR);
43
} catch (JsonException $e) {
44
- throw new SchemaException('Invalid JSON Schema', previous: $e);
+ throw new SchemaException('Invalid JSON Schema', $e->getCode(), previous: $e);
45
}
46
47
if (! is_array($decoded)) {
0 commit comments