Right now, true and false are not supported as JSON schemas, though they are useful in some places.
For example, the additionalItems field in an array can take a boolean with meaning, as can the additionalProperties field in an object. These shouldn't need to be special-cased – true is just a schema that always validates, and false always doesn't.
Right now,
true
andfalse
are not supported as JSON schemas, though they are useful in some places.For example, the additionalItems field in an array can take a boolean with meaning, as can the additionalProperties field in an object. These shouldn't need to be special-cased –
true
is just a schema that always validates, andfalse
always doesn't.