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

Use an alternative form to mark oneof fields as required #337

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kommendorkapten
Copy link
Member

Summary

Use an alternative and updated method to mark oneof fields as REQUIRED.

Closes: #336

Release Note

  • Updated how oneof fields are marked as REQUIRED in the protobuf

Documentation

N/A

Copy link
Collaborator

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

Great find for the fix. Do we need to test this with all language clients?

@haydentherapper
Copy link
Collaborator

Dismissing my review, seems like this isn't WAI according to sigstore/sigstore-go#63 (comment)

@kommendorkapten
Copy link
Member Author

@haydentherapper yes, I did see in the other PR that this was fully WAI, I haven't had time to dig into this. My fear is that relying on annotations for verifying field behaviour may differ between clients :(

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.

How to represent REQUIRED on oneof fields.
2 participants