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

Dont set group for optional fields #528

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Dont set group for optional fields #528

merged 2 commits into from
Oct 16, 2023

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
17 checks passed
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