You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Such an option set on a field with the type google.protobuf.Empty should not compile because enclosing message could not be built using the generated validation code.
When checking for a filled in value, we compare the value with a default instance of a message, and the result would be always true.
This also should include implicitly required field such as IDs for command messages or entity states.
The text was updated successfully, but these errors were encountered:
alexander-yevsyukov
changed the title
Produce compile-time error on (required) set on a field with type google.protobuf.Empty
Produce compile-time error on (required) set on google.protobuf.Empty field
Nov 5, 2024
alexander-yevsyukov
changed the title
Produce compile-time error on (required) set on google.protobuf.Empty field
Produce compile-time error on (required) set on an Empty field
Nov 5, 2024
Such an option set on a field with the type
google.protobuf.Empty
should not compile because enclosing message could not be built using the generated validation code.When checking for a filled in value, we compare the value with a default instance of a message, and the result would be always
true
.This also should include implicitly required field such as IDs for command messages or entity states.
The text was updated successfully, but these errors were encountered: