This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Should the test suite test validation of invalid schemas which are not invalid under the metaschema they come from #397
Labels
needs decision
An issue that requires a design decision before it can be completed
There are a number of constraints that the specification places on schemas which make them (the schemas) valid or invalid. Many or most of these constraints are specified in the draft's metaschema. As a concrete example, schemas must be objects or booleans, and the metaschema includes a
type
validator to ensure as such. There are however a number of constraints the draft specifications place on schemas which are not represented in a metaschema. They are directed (presumably at schema authors) as things they MUST NOT do, but no validatable entity exists which implements these constraints.Because no such entity exists, it's not currently possible to test these constraints under the current structure of the suite.
Known examples
$schema
more to be added
If the decision is made that the suite should test this behavior (e.g., because implementers should implement validation of this behavior), then a structure change may be necessary to the suite, in which case one needs to be designed in a way to reduce impact to users of the test suite.
There are a few ways to do this. Here are two:
Both cases basically tell the test runner, "apply additional schema rules to the data instances too".
The text was updated successfully, but these errors were encountered: