Austin Schuh | e89fa2d | 2019-08-14 20:24:23 -0700 | [diff] [blame^] | 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 | }, |
| 25 | "additionalProperties" : false |
| 26 | }, |
| 27 | "MyGame_Example_ArrayStruct" : { |
| 28 | "type" : "object", |
| 29 | "properties" : { |
| 30 | "a" : { |
| 31 | "type" : "number" |
| 32 | }, |
| 33 | "b" : { |
| 34 | "type" : "array", "items" : { "type" : "number" }, |
| 35 | "minItems": 15, |
| 36 | "maxItems": 15 |
| 37 | }, |
| 38 | "c" : { |
| 39 | "type" : "number" |
| 40 | }, |
| 41 | "d" : { |
| 42 | "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_NestedStruct" }, |
| 43 | "minItems": 2, |
| 44 | "maxItems": 2 |
| 45 | } |
| 46 | }, |
| 47 | "additionalProperties" : false |
| 48 | }, |
| 49 | "MyGame_Example_ArrayTable" : { |
| 50 | "type" : "object", |
| 51 | "properties" : { |
| 52 | "a" : { |
| 53 | "$ref" : "#/definitions/MyGame_Example_ArrayStruct" |
| 54 | } |
| 55 | }, |
| 56 | "additionalProperties" : false |
| 57 | } |
| 58 | }, |
| 59 | "$ref" : "#/definitions/MyGame_Example_ArrayTable" |
| 60 | } |