...

Text file src/github.com/google/flatbuffers/tests/required_strings.fbs

Documentation: github.com/google/flatbuffers/tests

     1namespace required_strings;
     2
     3/**
     4 * Foo defines a type where both fields are mandatory.
     5 * The creation of a Foo buffer must throw if either of the fields is missing.
     6 *
     7 * https://github.com/google/flatbuffers/issues/7739
     8 */
     9table Foo {
    10  str_a:string (required);
    11  str_b:string (required);
    12}

View as plain text