Home | History | Annotate | Download | only in tests
      1 {
      2   "$schema": "http://json-schema.org/draft-04/schema#",
      3   "definitions": {
      4     "MyGame_OtherNameSpace_FromInclude" : {
      5       "type" : "string",
      6       "enum": ["IncludeVal"]
      7     },
      8     "MyGame_Example_Color" : {
      9       "type" : "string",
     10       "enum": ["Red", "Green", "Blue"]
     11     },
     12     "MyGame_Example_Any" : {
     13       "type" : "string",
     14       "enum": ["NONE", "Monster", "TestSimpleTableWithEnum", "MyGame_Example2_Monster"]
     15     },
     16     "MyGame_OtherNameSpace_Unused" : {
     17       "type" : "object",
     18       "properties" : {
     19       },
     20       "additionalProperties" : false
     21     },
     22     "MyGame_OtherNameSpace_TableB" : {
     23       "type" : "object",
     24       "properties" : {
     25         "a" : { "$ref" : "#/definitions/TableA" }
     26       },
     27       "additionalProperties" : false
     28     },
     29     "TableA" : {
     30       "type" : "object",
     31       "properties" : {
     32         "b" : { "$ref" : "#/definitions/MyGame_OtherNameSpace_TableB" }
     33       },
     34       "additionalProperties" : false
     35     },
     36     "MyGame_InParentNamespace" : {
     37       "type" : "object",
     38       "properties" : {
     39       },
     40       "additionalProperties" : false
     41     },
     42     "MyGame_Example2_Monster" : {
     43       "type" : "object",
     44       "properties" : {
     45       },
     46       "additionalProperties" : false
     47     },
     48     "MyGame_Example_Test" : {
     49       "type" : "object",
     50       "properties" : {
     51         "a" : { "type" : "number" },
     52         "b" : { "type" : "number" }
     53       },
     54       "additionalProperties" : false
     55     },
     56     "MyGame_Example_TestSimpleTableWithEnum" : {
     57       "type" : "object",
     58       "properties" : {
     59         "color" : { "$ref" : "#/definitions/MyGame_Example_Color" }
     60       },
     61       "additionalProperties" : false
     62     },
     63     "MyGame_Example_Vec3" : {
     64       "type" : "object",
     65       "properties" : {
     66         "x" : { "type" : "number" },
     67         "y" : { "type" : "number" },
     68         "z" : { "type" : "number" },
     69         "test1" : { "type" : "number" },
     70         "test2" : { "$ref" : "#/definitions/MyGame_Example_Color" },
     71         "test3" : { "$ref" : "#/definitions/MyGame_Example_Test" }
     72       },
     73       "additionalProperties" : false
     74     },
     75     "MyGame_Example_Ability" : {
     76       "type" : "object",
     77       "properties" : {
     78         "id" : { "type" : "number" },
     79         "distance" : { "type" : "number" }
     80       },
     81       "additionalProperties" : false
     82     },
     83     "MyGame_Example_Stat" : {
     84       "type" : "object",
     85       "properties" : {
     86         "id" : { "type" : "string" },
     87         "val" : { "type" : "number" },
     88         "count" : { "type" : "number" }
     89       },
     90       "additionalProperties" : false
     91     },
     92     "MyGame_Example_Monster" : {
     93       "type" : "object",
     94       "description" : " an example documentation comment: monster object",
     95       "properties" : {
     96         "pos" : { "$ref" : "#/definitions/MyGame_Example_Vec3" },
     97         "mana" : { "type" : "number" },
     98         "hp" : { "type" : "number" },
     99         "name" : { "type" : "string" },
    100         "friendly" : { "type" : "boolean" },
    101         "inventory" : { "type" : "array", "items" : { "type" : "number" } },
    102         "color" : { "$ref" : "#/definitions/MyGame_Example_Color" },
    103         "test_type" : { "$ref" : "#/definitions/MyGame_Example_Any" },
    104         "test" : { "anyOf": [{ "$ref" : "#/definitions/MyGame_Example_Monster" },{ "$ref" : "#/definitions/MyGame_Example_TestSimpleTableWithEnum" },{ "$ref" : "#/definitions/MyGame_Example2_Monster" }] },
    105         "test4" : { "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Test" } },
    106         "testarrayofstring" : { "type" : "array", "items" : { "type" : "string" } },
    107         "testarrayoftables" : { "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Monster" } },
    108         "enemy" : { "$ref" : "#/definitions/MyGame_Example_Monster" },
    109         "testnestedflatbuffer" : { "type" : "array", "items" : { "type" : "number" } },
    110         "testempty" : { "$ref" : "#/definitions/MyGame_Example_Stat" },
    111         "testbool" : { "type" : "boolean" },
    112         "testhashs32_fnv1" : { "type" : "number" },
    113         "testhashu32_fnv1" : { "type" : "number" },
    114         "testhashs64_fnv1" : { "type" : "number" },
    115         "testhashu64_fnv1" : { "type" : "number" },
    116         "testhashs32_fnv1a" : { "type" : "number" },
    117         "testhashu32_fnv1a" : { "type" : "number" },
    118         "testhashs64_fnv1a" : { "type" : "number" },
    119         "testhashu64_fnv1a" : { "type" : "number" },
    120         "testarrayofbools" : { "type" : "array", "items" : { "type" : "boolean" } },
    121         "testf" : { "type" : "number" },
    122         "testf2" : { "type" : "number" },
    123         "testf3" : { "type" : "number" },
    124         "testarrayofstring2" : { "type" : "array", "items" : { "type" : "string" } },
    125         "testarrayofsortedstruct" : { "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Ability" } },
    126         "flex" : { "type" : "array", "items" : { "type" : "number" } },
    127         "test5" : { "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Test" } },
    128         "vector_of_longs" : { "type" : "array", "items" : { "type" : "number" } },
    129         "vector_of_doubles" : { "type" : "array", "items" : { "type" : "number" } },
    130         "parent_namespace_test" : { "$ref" : "#/definitions/MyGame_InParentNamespace" }
    131       },
    132       "required" : ["name"],
    133       "additionalProperties" : false
    134     },
    135     "MyGame_Example_TypeAliases" : {
    136       "type" : "object",
    137       "properties" : {
    138         "i8" : { "type" : "number" },
    139         "u8" : { "type" : "number" },
    140         "i16" : { "type" : "number" },
    141         "u16" : { "type" : "number" },
    142         "i32" : { "type" : "number" },
    143         "u32" : { "type" : "number" },
    144         "i64" : { "type" : "number" },
    145         "u64" : { "type" : "number" },
    146         "f32" : { "type" : "number" },
    147         "f64" : { "type" : "number" },
    148         "v8" : { "type" : "array", "items" : { "type" : "number" } },
    149         "vf64" : { "type" : "array", "items" : { "type" : "number" } }
    150       },
    151       "additionalProperties" : false
    152     }
    153   },
    154   "$ref" : "#/definitions/MyGame_Example_Monster"
    155 }
    156