A null config value means unset
The rule
Normative: this is the rule
- A config value of
nullmeans the key is unset. - It satisfies a required key, and no schema constraint is evaluated against it, so a
nullnever fails type,enum, bounds orpattern.
What it means
Presence and value are judged separately. A required key set to null is
still present, so it satisfies the requirement, and once it is treated as
unset no other constraint on that key is ever evaluated — a null cannot
fail a type, enum, bound or pattern check it would otherwise fail, because
none of those checks run against it at all.
Example
A required key's schema demands a string at least five characters long,
matching a pattern, and the key's value is null:
{"url": null}None of the string's type, minimum length or pattern is evaluated against it.
Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0-draft · R6.i · changed in spec 1.0