Type checking matches exactly and never coerces
The rule
Normative: this is the rule
- A
typecheck MUST judge the value as JSON Schema'stypekeyword does. - A value of the wrong type MUST fail, and MUST NOT be converted to make it pass.
- A
typethat names no JSON Schema type makes the schema invalid: that is the node type's failure (SCH-24), and the value is neither passed nor failed on account of it.
Why
Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · CFG-11 · changed in spec 1.0