then : Schema

then

Schema

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

Value This keyword must be set to a valid JSON Schema
Kind Applicator
Applies To Any
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.2
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