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

feat: add feature emit_fields #66

Merged
merged 3 commits into from
Sep 12, 2022
Merged

feat: add feature emit_fields #66

merged 3 commits into from
Sep 12, 2022

Conversation

rise0chen
Copy link
Contributor

@tustvold
Copy link
Contributor

tustvold commented Sep 6, 2022

I think this would be better exposed as a config option on pbjson-build in the same manner as ignore-unknown-fields. The additive behaviour of cargo feature flags could easily result in surprises otherwise.

If we could also test it in a similar way, that would be awesome.

See #36 for reference

@rise0chen
Copy link
Contributor Author

ok

Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

One thing I noticed whilst playing around with this is it will not emit nullable fields, i.e. messages or fields explicitly marked optional. I think this is fine as "default" in protobuf normally refers to fields where there is a default value instead of nullability.

@tustvold tustvold added the automerge Put in the merge queue label Sep 12, 2022
@kodiakhq kodiakhq bot merged commit 9d550f2 into influxdata:main Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Put in the merge queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants