JSON Schema Keywords

JSON Schema keywords are the building blocks of JSON Schema. They are used to define the structure of a JSON document

Core

$anchor

https://json-schema.org/learn/json-schema-examples#ecommerce-system

https://json-schema.org/understanding-json-schema/structuring#anchor

https://www.learnjsonschema.com/2020-12/core/anchor

$comment

https://json-schema.org/understanding-json-schema/reference/comments#comments

https://www.learnjsonschema.com/2020-12/core/comment

$defs

https://json-schema.org/learn/miscellaneous-examples

https://json-schema.org/understanding-json-schema/structuring#defs

https://www.learnjsonschema.com/2020-12/core/defs

$dynamicAnchor

https://www.learnjsonschema.com/2020-12/core/dynamicanchor

$dynamicRef

https://www.learnjsonschema.com/2020-12/core/dynamicref

$id

https://json-schema.org/learn/getting-started-step-by-step#create-a-schema-definition

https://json-schema.org/understanding-json-schema/basics#declaring-a-unique-identifier

https://www.learnjsonschema.com/2020-12/core/id

$ref

https://json-schema.org/learn/getting-started-step-by-step#create-a-schema-definition

https://json-schema.org/understanding-json-schema/basics#declaring-a-json-schema

https://json-schema.org/understanding-json-schema/reference/array#unevaluateditems

https://json-schema.org/understanding-json-schema/structuring#id

https://www.learnjsonschema.com/2020-12/core/ref

$schema

https://json-schema.org/understanding-json-schema/reference/schema

https://www.learnjsonschema.com/2020-12/core/schema

$vocabulary

https://www.learnjsonschema.com/2020-12/core/vocabulary

Applicator

additionalProperties

https://json-schema.org/learn/file-system#modeling-a-file-system-with-json-schema

https://json-schema.org/understanding-json-schema/reference/object#additionalproperties

https://www.learnjsonschema.com/2020-12/applicator/additionalproperties

allOf

https://json-schema.org/understanding-json-schema/reference/array#unevaluateditems

https://json-schema.org/understanding-json-schema/reference/combining#schema-composition

https://www.learnjsonschema.com/2020-12/applicator/allof

anyOf

https://json-schema.org/understanding-json-schema/reference/array#unevaluateditems

https://json-schema.org/understanding-json-schema/reference/combining#schema-composition

https://www.learnjsonschema.com/2020-12/applicator/anyof

contains

https://json-schema.org/understanding-json-schema/reference/array#contains

https://www.learnjsonschema.com/2020-12/applicator/contains

else

https://json-schema.org/learn/miscellaneous-examples

https://json-schema.org/understanding-json-schema/reference/conditionals#ifthenelse

https://www.learnjsonschema.com/2020-12/applicator/else

if

https://json-schema.org/learn/miscellaneous-examples

https://json-schema.org/understanding-json-schema/reference/conditionals#ifthenelse

https://www.learnjsonschema.com/2020-12/applicator/if

items

https://json-schema.org/learn/file-system#modeling-a-file-system-with-json-schema

https://json-schema.org/understanding-json-schema/reference/array#items

https://www.learnjsonschema.com/2020-12/applicator/items

not

https://json-schema.org/understanding-json-schema/reference/combining#schema-composition

https://www.learnjsonschema.com/2020-12/applicator/not

oneOf

https://json-schema.org/learn/file-system#modeling-a-file-system-with-json-schema

https://json-schema.org/understanding-json-schema/reference/array#unevaluateditems

https://json-schema.org/understanding-json-schema/reference/combining#schema-composition

https://www.learnjsonschema.com/2020-12/applicator/oneof

patternProperties

https://json-schema.org/learn/file-system#modeling-a-file-system-with-json-schema

https://json-schema.org/understanding-json-schema/reference/object#patternProperties

https://www.learnjsonschema.com/2020-12/applicator/patternproperties

prefixitems

https://json-schema.org/understanding-json-schema/reference/array#tupleValidation

https://www.learnjsonschema.com/2020-12/applicator/prefixitems

properties

https://json-schema.org/understanding-json-schema/reference/object#properties

https://json-schema.org/learn/getting-started-step-by-step#create-a-schema-definition

https://www.learnjsonschema.com/2020-12/applicator/properties

propertynames

https://json-schema.org/understanding-json-schema/reference/object#propertyNames

https://www.learnjsonschema.com/2020-12/applicator/propertynames

then

https://json-schema.org/learn/miscellaneous-examples

https://json-schema.org/understanding-json-schema/reference/conditionals#ifthenelse

https://www.learnjsonschema.com/2020-12/applicator/then

Validation

const

https://json-schema.org/understanding-json-schema/reference/const#constant-values

https://www.learnjsonschema.com/2020-12/validation/const

dependentRequired

https://json-schema.org/learn/miscellaneous-examples

https://json-schema.org/understanding-json-schema/reference/conditionals#applying-subschemas-conditionally

https://www.learnjsonschema.com/2020-12/validation/dependentrequired

dependentSchemas

https://json-schema.org/understanding-json-schema/reference/conditionals#dependentSchemas

https://www.learnjsonschema.com/2020-12/applicator/dependentschemas

enum

https://json-schema.org/learn/miscellaneous-examples

https://json-schema.org/understanding-json-schema/reference/enum#enumerated-values

https://www.learnjsonschema.com/2020-12/validation/enum

exclusiveMaximum

https://json-schema.org/understanding-json-schema/reference/numeric#range

https://www.learnjsonschema.com/2020-12/validation/exclusivemaximum

exclusiveMinimum

https://json-schema.org/understanding-json-schema/reference/numeric#range

https://www.learnjsonschema.com/2020-12/validation/exclusiveminimum

maxContains

https://json-schema.org/understanding-json-schema/reference/array#mincontains-maxcontains

https://www.learnjsonschema.com/2020-12/validation/maxcontains

maximum

https://json-schema.org/learn/file-system#modeling-a-file-system-with-json-schema

https://json-schema.org/understanding-json-schema/reference/numeric#range

https://www.learnjsonschema.com/2020-12/validation/maximum

minitems

https://json-schema.org/learn/file-system#modeling-a-file-system-with-json-schema

https://json-schema.org/understanding-json-schema/reference/array#length

https://www.learnjsonschema.com/2020-12/validation/minitems

minLength

https://json-schema.org/understanding-json-schema/reference/string#length

https://www.learnjsonschema.com/2020-12/validation/minitems

https://www.learnjsonschema.com/2020-12/validation/minLength

minProperties

https://json-schema.org/understanding-json-schema/reference/object#size

https://json-schema.org/draft/2020-12/json-schema-validation#name-minproperties

https://www.learnjsonschema.com/2020-12/validation/minProperties

multipleOf

https://json-schema.org/understanding-json-schema/reference/numeric#multiples

https://www.learnjsonschema.com/2020-12/validation/multipleof

pattern

https://json-schema.org/learn/miscellaneous-examples

https://json-schema.org/understanding-json-schema/reference/string#regexp

https://www.learnjsonschema.com/2020-12/validation/pattern

required

https://json-schema.org/learn/file-system#modeling-a-file-system-with-json-schema

https://json-schema.org/understanding-json-schema/reference/object#extending

https://www.learnjsonschema.com/2020-12/validation/required

type

https://json-schema.org/understanding-json-schema/reference/type

https://json-schema.org/understanding-json-schema/basics#the-type-keyword

https://json-schema.org/learn/getting-started-step-by-step#create-a-schema-definition

https://www.learnjsonschema.com/2020-12/validation/type

uniqueItems

https://json-schema.org/learn/file-system#modeling-a-file-system-with-json-schema

https://json-schema.org/understanding-json-schema/reference/array#uniqueItems

https://www.learnjsonschema.com/2020-12/validation/uniqueitems

Meta Data

default

https://json-schema.org/understanding-json-schema/reference/annotations

https://www.learnjsonschema.com/2020-12/meta-data/default

deprecated

https://json-schema.org/understanding-json-schema/reference/annotations

https://www.learnjsonschema.com/2020-12/meta-data/deprecated

description

https://json-schema.org/understanding-json-schema/reference/annotations

https://json-schema.org/learn/getting-started-step-by-step#create-a-schema-definition

https://www.learnjsonschema.com/2020-12/meta-data/description

examples

https://json-schema.org/understanding-json-schema/reference/annotations

https://www.learnjsonschema.com/2020-12/meta-data/examples

readOnly

https://json-schema.org/understanding-json-schema/reference/annotations

https://www.learnjsonschema.com/2020-12/meta-data/readonly

title

https://json-schema.org/understanding-json-schema/reference/annotations

https://json-schema.org/learn/getting-started-step-by-step#create-a-schema-definition

https://www.learnjsonschema.com/2020-12/meta-data/title

writeOnly

https://json-schema.org/understanding-json-schema/reference/annotations

https://www.learnjsonschema.com/2020-12/meta-data/writeonly

Need Help?

Did you find these docs helpful?

Help us make our docs great!

At JSON Schema, we value docs contributions as much as every other type of contribution!

Still Need Help?

Learning JSON Schema is often confusing, but don't worry, we are here to help!.