Does the "required" keyword have any extra meaning, or is it irrelevant with protobufs v3? #3678
Answered
by
raphael
RedMarcher
asked this question in
Q&A
-
I just learned today that Protobufs V3 actually decided to remove the required and optional attributes. I'm wondering if the definition in Goa does something extra, or if it's a legacy feature meant to support prior versions of protobufs. |
Beta Was this translation helpful? Give feedback.
Answered by
raphael
Mar 26, 2025
Replies: 1 comment
-
Goa generates explicit validation code based on the use of |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RedMarcher
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Goa generates explicit validation code based on the use of
Required
in the design. It leverages Protobuf v3 newoptional
keyword to implement the validation code (and implements the same logic for any HTTP endpoint as well). So definitely not legacy.