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_Race" : { 13 "type" : "string", 14 "enum": ["None", "Human", "Dwarf", "Elf"] 15 }, 16 "MyGame_Example_Any" : { 17 "type" : "string", 18 "enum": ["NONE", "Monster", "TestSimpleTableWithEnum", "MyGame_Example2_Monster"] 19 }, 20 "MyGame_Example_AnyUniqueAliases" : { 21 "type" : "string", 22 "enum": ["NONE", "M", "TS", "M2"] 23 }, 24 "MyGame_Example_AnyAmbiguousAliases" : { 25 "type" : "string", 26 "enum": ["NONE", "M1", "M2", "M3"] 27 }, 28 "MyGame_OtherNameSpace_Unused" : { 29 "type" : "object", 30 "properties" : { 31 "a" : { 32 "type" : "number" 33 } 34 }, 35 "additionalProperties" : false 36 }, 37 "MyGame_OtherNameSpace_TableB" : { 38 "type" : "object", 39 "properties" : { 40 "a" : { 41 "$ref" : "#/definitions/TableA" 42 } 43 }, 44 "additionalProperties" : false 45 }, 46 "TableA" : { 47 "type" : "object", 48 "properties" : { 49 "b" : { 50 "$ref" : "#/definitions/MyGame_OtherNameSpace_TableB" 51 } 52 }, 53 "additionalProperties" : false 54 }, 55 "MyGame_InParentNamespace" : { 56 "type" : "object", 57 "properties" : { 58 }, 59 "additionalProperties" : false 60 }, 61 "MyGame_Example2_Monster" : { 62 "type" : "object", 63 "properties" : { 64 }, 65 "additionalProperties" : false 66 }, 67 "MyGame_Example_Test" : { 68 "type" : "object", 69 "properties" : { 70 "a" : { 71 "type" : "number" 72 }, 73 "b" : { 74 "type" : "number" 75 } 76 }, 77 "additionalProperties" : false 78 }, 79 "MyGame_Example_TestSimpleTableWithEnum" : { 80 "type" : "object", 81 "properties" : { 82 "color" : { 83 "$ref" : "#/definitions/MyGame_Example_Color" 84 } 85 }, 86 "additionalProperties" : false 87 }, 88 "MyGame_Example_Vec3" : { 89 "type" : "object", 90 "properties" : { 91 "x" : { 92 "type" : "number" 93 }, 94 "y" : { 95 "type" : "number" 96 }, 97 "z" : { 98 "type" : "number" 99 }, 100 "test1" : { 101 "type" : "number" 102 }, 103 "test2" : { 104 "$ref" : "#/definitions/MyGame_Example_Color" 105 }, 106 "test3" : { 107 "$ref" : "#/definitions/MyGame_Example_Test" 108 } 109 }, 110 "additionalProperties" : false 111 }, 112 "MyGame_Example_Ability" : { 113 "type" : "object", 114 "properties" : { 115 "id" : { 116 "type" : "number" 117 }, 118 "distance" : { 119 "type" : "number" 120 } 121 }, 122 "additionalProperties" : false 123 }, 124 "MyGame_Example_Stat" : { 125 "type" : "object", 126 "properties" : { 127 "id" : { 128 "type" : "string" 129 }, 130 "val" : { 131 "type" : "number" 132 }, 133 "count" : { 134 "type" : "number" 135 } 136 }, 137 "additionalProperties" : false 138 }, 139 "MyGame_Example_Referrable" : { 140 "type" : "object", 141 "properties" : { 142 "id" : { 143 "type" : "number" 144 } 145 }, 146 "additionalProperties" : false 147 }, 148 "MyGame_Example_Monster" : { 149 "type" : "object", 150 "description" : " an example documentation comment: \"monster object\"", 151 "properties" : { 152 "pos" : { 153 "$ref" : "#/definitions/MyGame_Example_Vec3" 154 }, 155 "mana" : { 156 "type" : "number" 157 }, 158 "hp" : { 159 "type" : "number" 160 }, 161 "name" : { 162 "type" : "string" 163 }, 164 "friendly" : { 165 "type" : "boolean" 166 }, 167 "inventory" : { 168 "type" : "array", "items" : { "type" : "number" } 169 }, 170 "color" : { 171 "$ref" : "#/definitions/MyGame_Example_Color" 172 }, 173 "test_type" : { 174 "$ref" : "#/definitions/MyGame_Example_Any" 175 }, 176 "test" : { 177 "anyOf": [{ "$ref" : "#/definitions/MyGame_Example_Monster" },{ "$ref" : "#/definitions/MyGame_Example_TestSimpleTableWithEnum" },{ "$ref" : "#/definitions/MyGame_Example2_Monster" }] 178 }, 179 "test4" : { 180 "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Test" } 181 }, 182 "testarrayofstring" : { 183 "type" : "array", "items" : { "type" : "string" } 184 }, 185 "testarrayoftables" : { 186 "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Monster" } 187 }, 188 "enemy" : { 189 "$ref" : "#/definitions/MyGame_Example_Monster" 190 }, 191 "testnestedflatbuffer" : { 192 "type" : "array", "items" : { "type" : "number" } 193 }, 194 "testempty" : { 195 "$ref" : "#/definitions/MyGame_Example_Stat" 196 }, 197 "testbool" : { 198 "type" : "boolean" 199 }, 200 "testhashs32_fnv1" : { 201 "type" : "number" 202 }, 203 "testhashu32_fnv1" : { 204 "type" : "number" 205 }, 206 "testhashs64_fnv1" : { 207 "type" : "number" 208 }, 209 "testhashu64_fnv1" : { 210 "type" : "number" 211 }, 212 "testhashs32_fnv1a" : { 213 "type" : "number" 214 }, 215 "testhashu32_fnv1a" : { 216 "type" : "number" 217 }, 218 "testhashs64_fnv1a" : { 219 "type" : "number" 220 }, 221 "testhashu64_fnv1a" : { 222 "type" : "number" 223 }, 224 "testarrayofbools" : { 225 "type" : "array", "items" : { "type" : "boolean" } 226 }, 227 "testf" : { 228 "type" : "number" 229 }, 230 "testf2" : { 231 "type" : "number" 232 }, 233 "testf3" : { 234 "type" : "number" 235 }, 236 "testarrayofstring2" : { 237 "type" : "array", "items" : { "type" : "string" } 238 }, 239 "testarrayofsortedstruct" : { 240 "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Ability" } 241 }, 242 "flex" : { 243 "type" : "array", "items" : { "type" : "number" } 244 }, 245 "test5" : { 246 "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Test" } 247 }, 248 "vector_of_longs" : { 249 "type" : "array", "items" : { "type" : "number" } 250 }, 251 "vector_of_doubles" : { 252 "type" : "array", "items" : { "type" : "number" } 253 }, 254 "parent_namespace_test" : { 255 "$ref" : "#/definitions/MyGame_InParentNamespace" 256 }, 257 "vector_of_referrables" : { 258 "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Referrable" } 259 }, 260 "single_weak_reference" : { 261 "type" : "number" 262 }, 263 "vector_of_weak_references" : { 264 "type" : "array", "items" : { "type" : "number" } 265 }, 266 "vector_of_strong_referrables" : { 267 "type" : "array", "items" : { "$ref" : "#/definitions/MyGame_Example_Referrable" } 268 }, 269 "co_owning_reference" : { 270 "type" : "number" 271 }, 272 "vector_of_co_owning_references" : { 273 "type" : "array", "items" : { "type" : "number" } 274 }, 275 "non_owning_reference" : { 276 "type" : "number" 277 }, 278 "vector_of_non_owning_references" : { 279 "type" : "array", "items" : { "type" : "number" } 280 }, 281 "any_unique_type" : { 282 "$ref" : "#/definitions/MyGame_Example_AnyUniqueAliases" 283 }, 284 "any_unique" : { 285 "anyOf": [{ "$ref" : "#/definitions/MyGame_Example_Monster" },{ "$ref" : "#/definitions/MyGame_Example_TestSimpleTableWithEnum" },{ "$ref" : "#/definitions/MyGame_Example2_Monster" }] 286 }, 287 "any_ambiguous_type" : { 288 "$ref" : "#/definitions/MyGame_Example_AnyAmbiguousAliases" 289 }, 290 "any_ambiguous" : { 291 "anyOf": [{ "$ref" : "#/definitions/MyGame_Example_Monster" },{ "$ref" : "#/definitions/MyGame_Example_Monster" },{ "$ref" : "#/definitions/MyGame_Example_Monster" }] 292 }, 293 "vector_of_enums" : { 294 "$ref" : "#/definitions/MyGame_Example_Color" 295 }, 296 "signed_enum" : { 297 "$ref" : "#/definitions/MyGame_Example_Race" 298 } 299 }, 300 "required" : ["name"], 301 "additionalProperties" : false 302 }, 303 "MyGame_Example_TypeAliases" : { 304 "type" : "object", 305 "properties" : { 306 "i8" : { 307 "type" : "number" 308 }, 309 "u8" : { 310 "type" : "number" 311 }, 312 "i16" : { 313 "type" : "number" 314 }, 315 "u16" : { 316 "type" : "number" 317 }, 318 "i32" : { 319 "type" : "number" 320 }, 321 "u32" : { 322 "type" : "number" 323 }, 324 "i64" : { 325 "type" : "number" 326 }, 327 "u64" : { 328 "type" : "number" 329 }, 330 "f32" : { 331 "type" : "number" 332 }, 333 "f64" : { 334 "type" : "number" 335 }, 336 "v8" : { 337 "type" : "array", "items" : { "type" : "number" } 338 }, 339 "vf64" : { 340 "type" : "array", "items" : { "type" : "number" } 341 } 342 }, 343 "additionalProperties" : false 344 } 345 }, 346 "$ref" : "#/definitions/MyGame_Example_Monster" 347} 348