Liquid Studio 2021
JSON Schema Editor / Graphical Notation Overview / Definition Container
In This Topic
    Definition Container
    In This Topic
    Draft 04 Draft 06 Draft 07 Draft 2019-09

    The root schema may contain a definition container, this holds the definitions for named schemas that can then be referenced within the schema.

    This provides a mechanism for re-use and extensibility within the Json Schema.

    It is good practice to define any commonly used data types here and then reference them.

    It is allowable for a definition to contain references to other definitions (and even itself).

    Prior to draft 2019-09 definitions were defined in the 'definitions' property, from draft 2019-09 that has been renamed '$defs'.

    See Also