Add flatbuffer to json using reflection schema
Change-Id: I6f32c0403a74ec951e6c730c4006ede3bc91099c
diff --git a/aos/json_to_flatbuffer.fbs b/aos/json_to_flatbuffer.fbs
index 8942cc8..8c0402c 100644
--- a/aos/json_to_flatbuffer.fbs
+++ b/aos/json_to_flatbuffer.fbs
@@ -47,6 +47,19 @@
v:[VectorOfStrings];
}
+struct FooStructNested {
+ foo_byte:byte;
+}
+
+struct FooStruct {
+ foo_byte:byte;
+ nested_struct:FooStructNested;
+}
+
+struct StructEnum {
+ foo_enum:BaseType;
+}
+
table Configuration {
locations:[Location] (id: 0);
maps:[Map] (id: 1);
@@ -108,6 +121,10 @@
nested_config:Configuration (id: 32);
vov:VectorOfVectorOfString (id: 33);
+
+ foo_struct:FooStruct (id: 34);
+ vector_foo_struct:[FooStruct] (id: 35);
+ foo_struct_enum:StructEnum (id: 36);
}
root_type Configuration;