format icon indicating copy to clipboard operation
format copied to clipboard

Schemas should be able to define counter-examples (and the test suite should test those)

Open gnidan opened this issue 1 year ago • 0 comments

JSON Schema is nice because it gives us a mechanism for specifying example values for schemas.

It does not, sadly, afford a way to specify illustrative counter-examples, but we can invent a field for this (since JSON Schema allows adding additional fields other than what's defined). Maybe this should be called counterExamples or x-counterExamples.

gnidan avatar Jan 06 '24 10:01 gnidan