Getting Started
Miscellaneous Examples¶
Basic¶
This example provides a typical minimum you are likely to see in JSON Schema. It contains:
$id
keyword$schema
keywordtitle
annotation keywordtype
instance data modelproperties
validation keyword- Three keys:
firstName
,lastName
andage
each with their own:description
annotation keyword.type
instance data model (see above).
minimum
validation keyword on theage
key.
Data
Describing geographical coordinates.¶
This example introduces:
Data
Arrays of things¶
Arrays are fundamental structures in JSON -- here we demonstrate a couple of ways they can be described:
- An array of string values.
- An array of objects.
We also introduce the following with this example:
Data
Copyright OpenJS Foundation and JSON Schema contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
The OpenJS Foundation | Terms of Use | Privacy Policy | Bylaws | Code of Conduct | Trademark Policy | Trademark List | Cookie Policy