• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "$schema": "https://json-schema.org/draft/2019-09/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" : "integer", "minimum" : -2147483648, "maximum" : 2147483647
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" : "integer", "minimum" : -32768, "maximum" : 32767
72              },
73        "b" : {
74                "type" : "integer", "minimum" : -128, "maximum" : 127
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" : "integer", "minimum" : 0, "maximum" : 4294967295
117              },
118        "distance" : {
119                "type" : "integer", "minimum" : 0, "maximum" : 4294967295
120              }
121      },
122      "additionalProperties" : false
123    },
124    "MyGame_Example_StructOfStructs" : {
125      "type" : "object",
126      "properties" : {
127        "a" : {
128                "$ref" : "#/definitions/MyGame_Example_Ability"
129              },
130        "b" : {
131                "$ref" : "#/definitions/MyGame_Example_Test"
132              },
133        "c" : {
134                "$ref" : "#/definitions/MyGame_Example_Ability"
135              }
136      },
137      "additionalProperties" : false
138    },
139    "MyGame_Example_Stat" : {
140      "type" : "object",
141      "properties" : {
142        "id" : {
143                "type" : "string"
144              },
145        "val" : {
146                "type" : "integer", "minimum" : -9223372036854775808, "maximum" : 9223372036854775807
147              },
148        "count" : {
149                "type" : "integer", "minimum" : 0, "maximum" : 65535
150              }
151      },
152      "additionalProperties" : false
153    },
154    "MyGame_Example_Referrable" : {
155      "type" : "object",
156      "properties" : {
157        "id" : {
158                "type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615
159              }
160      },
161      "additionalProperties" : false
162    },
163    "MyGame_Example_Monster" : {
164      "type" : "object",
165      "description" : " an example documentation comment: \"monster object\"",
166      "properties" : {
167        "pos" : {
168                "$ref" : "#/definitions/MyGame_Example_Vec3"
169              },
170        "mana" : {
171                "type" : "integer", "minimum" : -32768, "maximum" : 32767
172              },
173        "hp" : {
174                "type" : "integer", "minimum" : -32768, "maximum" : 32767
175              },
176        "name" : {
177                "type" : "string"
178              },
179        "friendly" : {
180                "type" : "boolean",
181                "deprecated" : true,
182              },
183        "inventory" : {
184                "type" : "array", "items" : {"type" : "integer", "minimum" : 0, "maximum" :255}
185              },
186        "color" : {
187                "$ref" : "#/definitions/MyGame_Example_Color"
188              },
189        "test_type" : {
190                "$ref" : "#/definitions/MyGame_Example_Any"
191              },
192        "test" : {
193                "anyOf": [{ "$ref" : "#/definitions/MyGame_Example_Monster" },{ "$ref" : "#/definitions/MyGame_Example_TestSimpleTableWithEnum" },{ "$ref" : "#/definitions/MyGame_Example2_Monster" }]
194              },
195        "test4" : {
196                "type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_Test"}
197              },
198        "testarrayofstring" : {
199                "type" : "array", "items" : {"type" : "string"}
200              },
201        "testarrayoftables" : {
202                "type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_Monster"}
203              },
204        "enemy" : {
205                "$ref" : "#/definitions/MyGame_Example_Monster"
206              },
207        "testnestedflatbuffer" : {
208                "type" : "array", "items" : {"type" : "integer", "minimum" : 0, "maximum" :255}
209              },
210        "testempty" : {
211                "$ref" : "#/definitions/MyGame_Example_Stat"
212              },
213        "testbool" : {
214                "type" : "boolean"
215              },
216        "testhashs32_fnv1" : {
217                "type" : "integer", "minimum" : -2147483648, "maximum" : 2147483647
218              },
219        "testhashu32_fnv1" : {
220                "type" : "integer", "minimum" : 0, "maximum" : 4294967295
221              },
222        "testhashs64_fnv1" : {
223                "type" : "integer", "minimum" : -9223372036854775808, "maximum" : 9223372036854775807
224              },
225        "testhashu64_fnv1" : {
226                "type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615
227              },
228        "testhashs32_fnv1a" : {
229                "type" : "integer", "minimum" : -2147483648, "maximum" : 2147483647
230              },
231        "testhashu32_fnv1a" : {
232                "type" : "integer", "minimum" : 0, "maximum" : 4294967295
233              },
234        "testhashs64_fnv1a" : {
235                "type" : "integer", "minimum" : -9223372036854775808, "maximum" : 9223372036854775807
236              },
237        "testhashu64_fnv1a" : {
238                "type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615
239              },
240        "testarrayofbools" : {
241                "type" : "array", "items" : {"type" : "boolean"}
242              },
243        "testf" : {
244                "type" : "number"
245              },
246        "testf2" : {
247                "type" : "number"
248              },
249        "testf3" : {
250                "type" : "number"
251              },
252        "testarrayofstring2" : {
253                "type" : "array", "items" : {"type" : "string"}
254              },
255        "testarrayofsortedstruct" : {
256                "type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_Ability"}
257              },
258        "flex" : {
259                "type" : "array", "items" : {"type" : "integer", "minimum" : 0, "maximum" :255}
260              },
261        "test5" : {
262                "type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_Test"}
263              },
264        "vector_of_longs" : {
265                "type" : "array", "items" : {"type" : "integer", "minimum" : -9223372036854775808, "maximum" : 9223372036854775807}
266              },
267        "vector_of_doubles" : {
268                "type" : "array", "items" : {"type" : "number"}
269              },
270        "parent_namespace_test" : {
271                "$ref" : "#/definitions/MyGame_InParentNamespace"
272              },
273        "vector_of_referrables" : {
274                "type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_Referrable"}
275              },
276        "single_weak_reference" : {
277                "type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615
278              },
279        "vector_of_weak_references" : {
280                "type" : "array", "items" : {"type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615}
281              },
282        "vector_of_strong_referrables" : {
283                "type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_Referrable"}
284              },
285        "co_owning_reference" : {
286                "type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615
287              },
288        "vector_of_co_owning_references" : {
289                "type" : "array", "items" : {"type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615}
290              },
291        "non_owning_reference" : {
292                "type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615
293              },
294        "vector_of_non_owning_references" : {
295                "type" : "array", "items" : {"type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615}
296              },
297        "any_unique_type" : {
298                "$ref" : "#/definitions/MyGame_Example_AnyUniqueAliases"
299              },
300        "any_unique" : {
301                "anyOf": [{ "$ref" : "#/definitions/MyGame_Example_Monster" },{ "$ref" : "#/definitions/MyGame_Example_TestSimpleTableWithEnum" },{ "$ref" : "#/definitions/MyGame_Example2_Monster" }]
302              },
303        "any_ambiguous_type" : {
304                "$ref" : "#/definitions/MyGame_Example_AnyAmbiguousAliases"
305              },
306        "any_ambiguous" : {
307                "anyOf": [{ "$ref" : "#/definitions/MyGame_Example_Monster" },{ "$ref" : "#/definitions/MyGame_Example_Monster" },{ "$ref" : "#/definitions/MyGame_Example_Monster" }]
308              },
309        "vector_of_enums" : {
310                "type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_Color"}
311              },
312        "signed_enum" : {
313                "$ref" : "#/definitions/MyGame_Example_Race"
314              },
315        "testrequirednestedflatbuffer" : {
316                "type" : "array", "items" : {"type" : "integer", "minimum" : 0, "maximum" :255}
317              },
318        "scalar_key_sorted_tables" : {
319                "type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_Stat"}
320              }
321      },
322      "required" : ["name"],
323      "additionalProperties" : false
324    },
325    "MyGame_Example_TypeAliases" : {
326      "type" : "object",
327      "properties" : {
328        "i8" : {
329                "type" : "integer", "minimum" : -128, "maximum" : 127
330              },
331        "u8" : {
332                "type" : "integer", "minimum" : 0, "maximum" :255
333              },
334        "i16" : {
335                "type" : "integer", "minimum" : -32768, "maximum" : 32767
336              },
337        "u16" : {
338                "type" : "integer", "minimum" : 0, "maximum" : 65535
339              },
340        "i32" : {
341                "type" : "integer", "minimum" : -2147483648, "maximum" : 2147483647
342              },
343        "u32" : {
344                "type" : "integer", "minimum" : 0, "maximum" : 4294967295
345              },
346        "i64" : {
347                "type" : "integer", "minimum" : -9223372036854775808, "maximum" : 9223372036854775807
348              },
349        "u64" : {
350                "type" : "integer", "minimum" : 0, "maximum" : 18446744073709551615
351              },
352        "f32" : {
353                "type" : "number"
354              },
355        "f64" : {
356                "type" : "number"
357              },
358        "v8" : {
359                "type" : "array", "items" : {"type" : "integer", "minimum" : -128, "maximum" : 127}
360              },
361        "vf64" : {
362                "type" : "array", "items" : {"type" : "number"}
363              }
364      },
365      "additionalProperties" : false
366    }
367  },
368  "$ref" : "#/definitions/MyGame_Example_Monster"
369}
370