Skip to content

Proto3 field presence #268

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

Closed
wants to merge 8 commits into from

Conversation

roblabla
Copy link
Contributor

Fixes #229

Fixes #35

Adds proto3 field presence support. Most of the infrastructure was already present to support it, all I had to do was add some plumbing:

  • When a field is specified to be proto3_optional, make its default value None (instead of PLACEHOLDER)
  • Tell the protobuf that we're compatible with proto3 field presence

The rest is mostly updating the documentation to take into account the field presence.

@roblabla roblabla force-pushed the proto3-field-presence branch 2 times, most recently from 24c4851 to 7252a17 Compare September 21, 2021 12:18
@roblabla roblabla force-pushed the proto3-field-presence branch from 7252a17 to 9a39e19 Compare September 30, 2021 14:35
Copy link
Collaborator

@kalzoo kalzoo left a comment

Choose a reason for hiding this comment

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

Tried it out on a real-life package and it worked as expected, thanks @roblabla!

@kalzoo
Copy link
Collaborator

kalzoo commented Oct 15, 2021

@nat-n, @boukeversteegh , or @danielgtaylor - mind having a look, or at least approving the GHA workflow?

@kalzoo
Copy link
Collaborator

kalzoo commented Oct 26, 2021

@roblabla could you fix up the code style? After that we should be all set here.

This was referenced Nov 16, 2021
@roblabla
Copy link
Contributor Author

Superseded by #281 . Thanks @kalzoo :)

@roblabla roblabla closed this Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proto3 support for optional support for proto3 optional (explicit field presence)
2 participants