1{ 2 "$schema": "http://json-schema.org/draft-04/schema#", 3 "definitions": { 4 "MyGame_Example_TestEnum" : { 5 "type" : "string", 6 "enum": ["A", "B", "C"] 7 }, 8 "MyGame_Example_NestedStruct" : { 9 "type" : "object", 10 "properties" : { 11 "a" : { 12 "type" : "array", "items" : { "type" : "number" }, 13 "minItems": 2, 14 "maxItems": 2 15 }, 16 "b" : { 17 "$ref" : "#/definitions/MyGame_Example_TestEnum" 18 }, 19 "c" : { 20 "$ref" : "#/definitions/MyGame_Example_TestEnum", 21 "minItems": 2, 22 "maxItems": 2 23 }, 24 "d" : { 25 "type" : "array", "items" : { "type" : "number" }, 26 "minItems": 2, 27 "maxItems": 2 28 } 29 }, 30 "additionalProperties" : false 31 }, 32 "MyGame_Example_ArrayStruct" : { 33 "type" : "object", 34 "properties" : { 35 "a" : { 36 "type" : "number" 37 }, 38 "b" : { 39 "type" : "array", "items" : { "type" : "number" }, 40 "minItems": 15, 41 "maxItems": 15 42 }, 43 "c" : { 44 "type" : "number" 45 }, 46 "d" : { 47 "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_NestedStruct" }, 48 "minItems": 2, 49 "maxItems": 2 50 }, 51 "e" : { 52 "type" : "number" 53 }, 54 "f" : { 55 "type" : "array", "items" : { "type" : "number" }, 56 "minItems": 2, 57 "maxItems": 2 58 } 59 }, 60 "additionalProperties" : false 61 }, 62 "MyGame_Example_ArrayTable" : { 63 "type" : "object", 64 "properties" : { 65 "a" : { 66 "$ref" : "#/definitions/MyGame_Example_ArrayStruct" 67 } 68 }, 69 "additionalProperties" : false 70 } 71 }, 72 "$ref" : "#/definitions/MyGame_Example_ArrayTable" 73} 74