Skip to content

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

@gnidan

Description

@gnidan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions