mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 08:00:03 +00:00
fix(flatbuffers): use manual impl Default for struct object types (#8947)
* fix(flatbuffers): use manual impl Default for struct object types * fix: handle bool and float zero literals in struct object Default impl * fix: regenerate all test bindings with generate_code.py * fix: data type check on swift build * fix: test large array on struct and enum
This commit is contained in:
@@ -59,6 +59,37 @@
|
||||
},
|
||||
"additionalProperties" : false
|
||||
},
|
||||
"MyGame_Example_LargeArrayStruct" : {
|
||||
"type" : "object",
|
||||
"properties" : {
|
||||
"d" : {
|
||||
"type" : "array", "items" : {"type" : "integer", "minimum" : 0, "maximum" :255},
|
||||
"minItems": 64,
|
||||
"maxItems": 64
|
||||
},
|
||||
"e" : {
|
||||
"type" : "array", "items" : {"type" : "number"},
|
||||
"minItems": 64,
|
||||
"maxItems": 64
|
||||
},
|
||||
"f" : {
|
||||
"type" : "array", "items" : {"type" : "boolean"},
|
||||
"minItems": 64,
|
||||
"maxItems": 64
|
||||
},
|
||||
"g" : {
|
||||
"type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_NestedStruct"},
|
||||
"minItems": 64,
|
||||
"maxItems": 64
|
||||
},
|
||||
"h" : {
|
||||
"type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_TestEnum"},
|
||||
"minItems": 64,
|
||||
"maxItems": 64
|
||||
}
|
||||
},
|
||||
"additionalProperties" : false
|
||||
},
|
||||
"MyGame_Example_ArrayTable" : {
|
||||
"type" : "object",
|
||||
"properties" : {
|
||||
|
||||
Reference in New Issue
Block a user