summaryrefslogtreecommitdiff
path: root/reflection/reflection.fbs
diff options
context:
space:
mode:
authorCasper <casperneo@uchicago.edu>2021-04-27 10:10:59 -0400
committerGitHub <noreply@github.com>2021-04-27 10:10:59 -0400
commit16836ff95a7f112f66a8c5994a508e6bfec010c9 (patch)
tree9431fa06f6f778cf2e27c41b9021c1114f87fbf3 /reflection/reflection.fbs
parentc87179e73ed568183f8bf94468f5703886e0e6fb (diff)
downloadflatbuffers-16836ff95a7f112f66a8c5994a508e6bfec010c9.tar.gz
flatbuffers-16836ff95a7f112f66a8c5994a508e6bfec010c9.tar.bz2
flatbuffers-16836ff95a7f112f66a8c5994a508e6bfec010c9.zip
Add advance feature indicators to reflection (#6546)
* Add advance feature indicators to reflection * deserialize too * model advanced features as bitflags * use uint64_t instead of AdvancedFeatures * git clang format * initialize advanced_features_ * remove whitespace Co-authored-by: Casper Neo <cneo@google.com>
Diffstat (limited to 'reflection/reflection.fbs')
-rw-r--r--reflection/reflection.fbs9
1 files changed, 9 insertions, 0 deletions
diff --git a/reflection/reflection.fbs b/reflection/reflection.fbs
index d9e2dc47..36230b20 100644
--- a/reflection/reflection.fbs
+++ b/reflection/reflection.fbs
@@ -102,6 +102,14 @@ table Service {
documentation:[string];
}
+// New schema language features that are not supported by old code generators.
+enum AdvancedFeatures : ulong (bit_flags) {
+ AdvancedArrayFeatures,
+ AdvancedUnionFeatures,
+ OptionalScalars,
+ DefaultVectorsAndStrings,
+}
+
table Schema {
objects:[Object] (required); // Sorted.
enums:[Enum] (required); // Sorted.
@@ -109,6 +117,7 @@ table Schema {
file_ext:string;
root_table:Object;
services:[Service]; // Sorted.
+ advanced_features:AdvancedFeatures;
}
root_type Schema;