If you are already familiar with the JSON Schema standard then you may want to know how the JSON Schema keywords relate to the graphical representation.
This table gives you a list of the keywords and the linked topic provides information about how they relate the diagram.
Keyword |
Applies to |
Draft 4 |
Draft 6 |
Draft 7 |
Draft |
Draft |
---|---|---|---|---|---|---|
additionalItems | array | Yes | Yes | Yes | Yes | |
additionalProperties | object | Yes | Yes | Yes | Yes | Yes |
const | all | Yes | Yes | Yes | Yes | |
contains | array | Yes | Yes | Yes | Yes | |
contentEncoding | string | yes | yes | yes | ||
contentMediaType | string | Yes | Yes | Yes | ||
$comment | all | Yes | Yes | Yes | ||
all | Yes | Yes | Yes | Yes | Yes | |
all | Yes | Yes | ||||
all | Yes | Yes | Yes | [Yes] | [Yes] | |
description | all | Yes | Yes | Yes | Yes | Yes |
$dynamicAnchor | all | Yes | ||||
$dynamicRef | all | Yes | ||||
enum | all | Yes | Yes | Yes | Yes | Yes |
examples | all | Yes | Yes | Yes | Yes | |
exclusiveMaximum | numeric | Yes | Yes | Yes | Yes | Yes |
exclusiveMinimum | numeric | Yes | Yes | Yes | Yes | Yes |
id | all | Yes | ||||
$id | all | Yes | Yes | Yes | Yes | |
items | array | Yes | Yes | Yes | Yes | Yes |
maximum | numeric | Yes | Yes | Yes | Yes | Yes |
maxContains | array | Yes | Yes | |||
array | Yes | Yes | Yes | Yes | Yes | |
maxLength | string | Yes | Yes | Yes | Yes | Yes |
maxProperties | object | Yes | Yes | Yes | Yes | Yes |
minimum | numeric | Yes | Yes | Yes | Yes | Yes |
minContains | array | Yes | Yes | |||
minItems | array | Yes | Yes | Yes | Yes | Yes |
minLength | string | Yes | Yes | Yes | Yes | Yes |
minProperties | object | Yes | Yes | Yes | Yes | Yes |
multipleOf | numeric | Yes | Yes | Yes | Yes | Yes |
pattern | string | Yes | Yes | Yes | Yes | Yes |
patternProperties | object | Yes | Yes | Yes | Yes | Yes |
prefixItems | all | Yes | ||||
properties | object | Yes | Yes | Yes | Yes | Yes |
propertyNames | object | Yes | Yes | Yes | Yes | |
readOnly | all | Yes | Yes | Yes | ||
$recursiveAnchor | all | Yes | ||||
$recursiveRef | all | Yes | ||||
required | object | Yes | Yes | Yes | Yes | Yes |
Schema | root object | Yes | Yes | Yes | Yes | Yes |
title | all | Yes | Yes | Yes | Yes | Yes |
type | all | Yes | Yes | Yes | Yes | Yes |
writeOnly | all | Yes | Yes | Yes | ||
unevaluatedItems | array | Yes | ||||
unevaluatedProperties | object | Yes | ||||
uniqueItems | array | Yes | Yes | Yes | Yes | Yes |