$ref trỏ đến định nghĩa schema khác.
{"$ref": "#/$defs/id", "$defs": {"id": {"type": "integer"}}}
Dùng $defs với $ref để tránh trùng lặp.