Skip to content

Type checking matches exactly and never coerces

The rule

Normative: this is the rule
  1. A type check MUST judge the value as JSON Schema's type keyword does.
  2. A value of the wrong type MUST fail, and MUST NOT be converted to make it pass.
  3. A type that 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

Recorded under OPEN-25, OPEN-28.

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