else : Schema

else

Schema

When if is present, and the instance fails to validate against its subschema, then validation succeeds if the instance successfully validates against this keyword’s subschema.

Value This keyword must be set to a valid JSON Schema Hint: Use the jsonschema metaschema command to catch keywords set to invalid values
Kind Applicator
Applies To Any
Base Dialect 2019-09
Changed In None
Introduced In Draft 7
Vocabulary Applicator
Specification https://json-schema.org/draft/2019-09/draft-handrews-json-schema-02#rfc.section.9.2.2.3
Metaschema https://json-schema.org/draft/2019-09/meta/applicator
Official Tests draft2019-09/if-then-else.json
Default {}
Annotation None
Affected By
Affects None
Also See