Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gnidan opened this issue Jan 6, 2024 · 0 comments

Comments

@gnidan
Copy link
Member

gnidan commented Jan 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant