Neg a JSON Schema

Neg returns a schema that accepts exactly the values rejected by the input schema.

Use neg when you want the logical complement of a schema.

Enter one schema and inspect the schema returned by the library.

Schema
input
Neg
complement
Negated schema
JSON output
{ "type": "string", "minLength": 2, "maxLength": 6 }