mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 11:12:19 +00:00
[C++, JSON] Fix nullptr access when reading a key with a default value. (#6375)
This commit fixes handling of default and NULL `key` fields in `Parser::ParseVector` (#5928). The JSON generator updated. It outputs `key` fields even if the `--force-defaults` option is inactive. Additional test cases for `key` added.
This commit is contained in:
@@ -299,6 +299,9 @@
|
||||
},
|
||||
"testrequirednestedflatbuffer" : {
|
||||
"type" : "array", "items" : {"type" : "integer", "minimum" : 0, "maximum" :255"}
|
||||
},
|
||||
"scalar_key_sorted_tables" : {
|
||||
"type" : "array", "items" : {"$ref" : "#/definitions/MyGame_Example_Stat"}
|
||||
}
|
||||
},
|
||||
"required" : ["name"],
|
||||
|
||||
Reference in New Issue
Block a user