Skip to content

Conversation

124C41p
Copy link
Contributor

@124C41p 124C41p commented Sep 20, 2023

When parsing .proto files, protoc makes each optional field part of a distinct group. This is probably for backwards compatibility since the proto3 optional feature was only added later. Since betterproto supports this feature, it seems natural to me to ignore these artificial group names of optional fields. This change also fixes #523.

@cetanu cetanu merged commit 8b5dd6c into danielgtaylor:master Oct 16, 2023
cetanu pushed a commit that referenced this pull request Oct 16, 2023
cetanu pushed a commit that referenced this pull request Oct 16, 2023
bbonenfant pushed a commit to pachyderm/python-betterproto that referenced this pull request Jan 23, 2024
bbonenfant pushed a commit to pachyderm/python-betterproto that referenced this pull request Jan 23, 2024
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.

Error on accessing unset optional field
2 participants