json-schema-validator/test/id.schema.json
Patrick Boettcher b2240084fe validator: rework everything to handle local and remote refs
Added json-uri and json-pointer-classes and a schema-preparation-pass.
2016-12-26 23:48:57 +01:00

30 lines
620 B
JSON

{
"id": "http://example.com/root.json",
"definitions": {
"A": { "id": "#foo" },
"B": {
"id": "other.json",
"definitions": {
"X": { "id": "#bar" },
"Y": { "id": "t/inner.json" }
}
},
"C": {
"id": "urn:uuid:ee564b8a-7a87-4125-8c96-e9f123d6766f"
},
"single": {
"id": "#item",
"type": "integer"
},
"a": {"type": "integer"},
"b": {"$ref": "#/definitions/a"},
"c": {"$ref": "#/definitions/b"},
"remote": { "$ref": "http://localhost:1234/subSchemas.json#/refToInteger" }
},
"items": {
"type": "array",
"items": [ { "$ref": "#item" }, { "$ref": "other.json#bar" } ]
}
}