-
Couldn't load subscription status.
- Fork 2.3k
Closed
Labels
Description
Spec: http://json-schema.org/latest/json-schema-core.html#anchor25
I suggest we start by supporting local definitions only:
{
"definitions": {
"address": {
"type": "object",
"properties": {
"street_address": { "type": "string" },
"city": { "type": "string" },
"state": { "type": "string" }
},
"required": ["street_address", "city", "state"]
}
},
"type": "object",
"properties": {
"billing_address": { "$ref": "#/definitions/address" },
"shipping_address": { "$ref": "#/definitions/address" }
}
}(Sample JSONSchema source extracted from http://spacetelescope.github.io/understanding-json-schema/structuring.html)