grantila / suretype

Typesafe JSON (Schema) validator
502 stars 9 forks source link

Support `not` #20

Open dbartholomae opened 2 years ago

dbartholomae commented 2 years ago

Hi! I think it currently isn't possible to create the following schema:

{
    "type": "object",
    "properties": {
        "x": { "type": "integer" }
    },
    "required": [ "x" ],
    "not": { "required": [ "z" ] }
}

It would be great to add this.