1{ 2 "$schema": "http://json-schema.org/draft-07/schema#", 3 "$id": "https://example.com/issue-451.json", 4 "title": "AllOf structuring payload", 5 "description": "Test description", 6 "type": "object", 7 "properties": { 8 "allOfAttr" : { 9 "allOf" : [ 10 {"$ref": "#/definitions/definition1"}, 11 {"$ref": "#/definitions/definition2"} 12 ] 13 }, 14 "anyOfAttr" : { 15 "anyOf" : [ 16 {"$ref": "#/definitions/definition1"}, 17 {"$ref": "#/definitions/definition2"} 18 ] 19 } 20 }, 21 "additionalProperties": false, 22 "definitions": { 23 "definition1" : { 24 "type": "object", 25 "properties": { 26 "a" : {"type": "string"}, 27 "c" : {"type": "integer"} 28 }, 29 "additionalProperties": false 30 }, 31 "definition2" : { 32 "type": "object", 33 "properties": { 34 "x" : {"type": "number"}, 35 "y" : {"type": "number"} 36 }, 37 "required": ["x", "y"], 38 "additionalProperties": false 39 } 40 } 41}