{ "definitions": { "car": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "make": { "type": "string" }, "brand": { "items": { "$ref": "#/definitions/brand" } } } }, "tag": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "value": { "type": "string" } } }, "brand": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "name": { "type": "string" } } }, "truck": { "items": { "$ref": "#/definitions/car" } }, "batch": { "items": { "items": { "$ref": "#/definitions/brand" } } }, "batch2": { "items": [ { "items": { "$ref": "#/definitions/brand" } }, { "items": { "$ref": "#/definitions/tag" } } ] }, "allofBoth": { "allOf": [ { "items": { "$ref": "#/definitions/brand" } }, { "items": { "$ref": "#/definitions/tag" } } ] }, "anyofBoth": { "anyOf": [ { "items": { "$ref": "#/definitions/brand" } }, { "items": { "$ref": "#/definitions/tag" } } ] }, "oneofBoth": { "oneOf": [ { "items": { "$ref": "#/definitions/brand" } }, { "items": { "$ref": "#/definitions/tag" } } ] }, "notSomething": { "not": { "items": { "$ref": "#/definitions/tag" } } }, "withAdditional": { "additionalProperties": { "items": { "$ref": "#/definitions/tag" } } }, "withPattern": { "patternProperties": { "^x-ab": { "items": { "$ref": "#/definitions/tag" } } } }, "withAdditionalItems": { "additionalItems": { "items": { "$ref": "#/definitions/tag" } } }, "deps": { "dependencies": { "something": { "items": { "$ref": "#/definitions/tag" } } } }, "defined": { "definitions": { "something": { "items": { "$ref": "#/definitions/tag" } } } } } }