Understand JSON Schema keyword behaviors
mainJSON Schema keywords are categorized into three primary behaviors:
- Assertions: Validate that an instance satisfies specific constraints, returning
trueif satisfied andfalseotherwise. - Annotations: Attach metadata to specific instance locations for application-level use (e.g.,
title,description). - Applicators: Apply subschemas to parts of the instance and combine their results (e.g.,
allOf,anyOf,not).
Note that operational directive keywords like $id and $schema provide metadata for implementation processing and do not fall into these three categories.