mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 21:28:38 +00:00
* [TS]: Fix vtable creation for consecutive required fileds (#7739) * handle feedback * comment the schema * comment change in builder.ts * [TS]: builder, Fix requiredField() Verifty that the field is present in the vtable. * restore monsterdata binary file Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
12
tests/required_strings.fbs
Normal file
12
tests/required_strings.fbs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace required_strings;
|
||||
|
||||
/**
|
||||
* Foo defines a type where both fields are mandatory.
|
||||
* The creation of a Foo buffer must throw if either of the fields is missing.
|
||||
*
|
||||
* https://github.com/google/flatbuffers/issues/7739
|
||||
*/
|
||||
table Foo {
|
||||
str_a:string (required);
|
||||
str_b:string (required);
|
||||
}
|
||||
Reference in New Issue
Block a user