mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-05 04:58:57 +00:00
Allow structs to be parsed in JSON with out of order fields.
Also simplified the code and made it faster. Change-Id: I1d83b1165a4a9a4380d1bfb5538769c012d2d367 Tested: on Linux.
This commit is contained in:
@@ -738,7 +738,7 @@ void ErrorTest() {
|
||||
TestError("table X { Y:int; } root_type X; { \"Y\":1, }", "string constant",
|
||||
true);
|
||||
TestError("struct X { Y:int; Z:int; } table W { V:X; } root_type W; "
|
||||
"{ V:{ Y:1 } }", "incomplete");
|
||||
"{ V:{ Y:1 } }", "wrong number");
|
||||
TestError("enum E:byte { A } table X { Y:E; } root_type X; { Y:U }",
|
||||
"unknown enum value");
|
||||
TestError("table X { Y:byte; } root_type X; { Y:; }", "starting");
|
||||
|
||||
Reference in New Issue
Block a user