karenetheridge / JSON-Schema-Modern

Validate data against a schema using a JSON Schema
https://metacpan.org/release/JSON-Schema-Modern/
Other
11 stars 1 forks source link

allow changing $schema in resource subschemas #12

Closed karenetheridge closed 3 years ago

karenetheridge commented 4 years ago

As explicitly described in https://github.com/json-schema-org/json-schema-spec/pull/914 -- examine $schema wherever it (legally) appears and adjust evaluation semantics accordingly (including turning on/off keyword support via $vocabularies).

But as per https://github.com/json-schema-org/json-schema-spec/issues/808#issuecomment-539260485 --

... implementations at least SHOULD check $schema and if available $vocabulary, but are free to error out on unknown or known but unsupported (e.g. old drafts) values.

(Support for earlier drafts' semantics may be covered in a separate issue, to be implemented separately.)

karenetheridge commented 4 years ago

blocked on #13 -- until then, we don't do anything special with the $schema keyword anyway.

karenetheridge commented 3 years ago

As of version 0.513 we now accept different values in the $schema keyword.