Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add advance feature indicators to reflection #6546

Merged
merged 8 commits into from
Apr 27, 2021
Merged

Conversation

CasperN
Copy link
Collaborator

@CasperN CasperN commented Apr 5, 2021

While old schemas are forwards compatible, new features are not backwards compatible with old generators. e.g., AdvancedUnionFeatures, OptionalScalars, etc. This PR defines an enum AdvancedFeature which is a hint to code generators that the serialized schema contains features that may break some generators. It's the responsibility of the code generator to check if there are unrecognized advanced features and fail accordingly.

#6428

@github-actions github-actions bot added c++ codegen Involving generating code from schema labels Apr 5, 2021
include/flatbuffers/idl.h Outdated Show resolved Hide resolved
reflection/reflection.fbs Outdated Show resolved Hide resolved
reflection/reflection.fbs Outdated Show resolved Hide resolved
include/flatbuffers/idl.h Outdated Show resolved Hide resolved
@CasperN CasperN merged commit 16836ff into google:master Apr 27, 2021
@CasperN CasperN deleted the fea branch April 27, 2021 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ codegen Involving generating code from schema
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants