JSON Schema $ref Keyword

The $ref keyword points to another schema definition.

Syntax

{"$ref": "#/$defs/id", "$defs": {"id": {"type": "integer"}}}

Explanation

Use $defs with $ref to avoid duplicating complex schemas.