mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 00:20:01 +00:00
Fix 64-bit numeric enum values in typescript (#7135)
* Fix 64-bit default numeric enum values in typescript If you had a default value that wasn't a valid enum value (e.g., a zero if you used a bit_flag setting, like you get with AdvancedFeatures in reflection.fbs), we weren't using BigInt. * Run generate_code.py * [DART] Handle deprecated fields & invalid enum defaults * Update .NET test
This commit is contained in:
@@ -13,6 +13,10 @@
|
||||
"type" : "string",
|
||||
"enum": ["None", "Human", "Dwarf", "Elf"]
|
||||
},
|
||||
"MyGame_Example_LongEnum" : {
|
||||
"type" : "string",
|
||||
"enum": ["LongOne", "LongTwo", "LongBig"]
|
||||
},
|
||||
"MyGame_Example_Any" : {
|
||||
"type" : "string",
|
||||
"enum": ["NONE", "Monster", "TestSimpleTableWithEnum", "MyGame_Example2_Monster"]
|
||||
@@ -321,6 +325,12 @@
|
||||
},
|
||||
"native_inline" : {
|
||||
"$ref" : "#/definitions/MyGame_Example_Test"
|
||||
},
|
||||
"long_enum_non_enum_default" : {
|
||||
"$ref" : "#/definitions/MyGame_Example_LongEnum"
|
||||
},
|
||||
"long_enum_normal_default" : {
|
||||
"$ref" : "#/definitions/MyGame_Example_LongEnum"
|
||||
}
|
||||
},
|
||||
"required" : ["name"],
|
||||
|
||||
Reference in New Issue
Block a user