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 support for metadata attributes for enum values (#7567) #7568

Merged
merged 4 commits into from
Oct 7, 2022
Merged

Add support for metadata attributes for enum values (#7567) #7568

merged 4 commits into from
Oct 7, 2022

Conversation

piotrdz
Copy link
Contributor

@piotrdz piotrdz commented Oct 6, 2022

This change adds support for metadata attributes for enum values as described in feature request #7567.

I based it on the existing parser code for metadata attributes on other definitions and it appears to work as expected, after re-generating the schema code.

I also added a unit test in one of the Python tests for flatc to make sure that the generated schema contains what is expected.

@github-actions github-actions bot added c++ codegen Involving generating code from schema python labels Oct 6, 2022
@CasperN
Copy link
Collaborator

CasperN commented Oct 6, 2022

High level LGTM but looks like there's some CI checks to fix

@piotrdz
Copy link
Contributor Author

piotrdz commented Oct 6, 2022

Yes, there was a problem with path lookup in my test. It should be fixed now.

@piotrdz
Copy link
Contributor Author

piotrdz commented Oct 6, 2022

And there was another problem with Windows paths, but it is all resolved now.

@CasperN CasperN merged commit 54418f3 into google:master Oct 7, 2022
@CasperN
Copy link
Collaborator

CasperN commented Oct 7, 2022

Thanks!

bulentv pushed a commit to zdrealityhub/flatbuffers that referenced this pull request Oct 18, 2022
…ogle#7568)

* Add support for metadata attributes for enum values (google#7567)

* Fix path lookup in flatc test

* Try a fix for Windows paths

* Convert path to string to fix Windows error
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 python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants