Draft 04 | Draft 06 | Draft 07 | Draft 2019-09 | Draft 2020-12 |
![]() |
![]() |
![]() |
![]() |
![]() |
References and Definitions are the main mechanism within the JSON Schema standard to support re-use. Essentially a schema can be declared within the root schemas Definitions Container, these definition schemas can then be referenced and re-used elsewhere within the schema.
Schemas that reference a definition have a over the normal icon, and the type field shows the definition they are referencing.
Code Snippet |
Copy Code
|
---|---|
"ISBN": { "$ref": "#/definitions/isbnType" } |
The UI will provide a list of existing definitions when the type field is dropped down and automatically build a reference is one is selected.