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
In order to be able to specify the priority of the required_field logical operations explicitly, we should introduce support for the parentheses operator (()).
With such an operator it'll be possible to define such complex validation rules as e.g.:
In the message above we want the list or the map field and the oneof field and the message field to be required.
Without the parentheses operator, such a condition is just impossible to achieve. The following validation rule without parentheses will result in: first or second and third or fourth and fifth are required:
option (required_field) = "first | second & third | fourth & fifth";
The notation above is actual equal to: "first | (second & third) | (fourth & fifth)".
The text was updated successfully, but these errors were encountered:
In order to be able to specify the priority of the
required_field
logical operations explicitly, we should introduce support for the parentheses operator (()
).With such an operator it'll be possible to define such complex validation rules as e.g.:
In the message above we want the list or the map field and the
oneof
field and the message field to be required.Without the parentheses operator, such a condition is just impossible to achieve. The following validation rule without parentheses will result in:
first
orsecond and third
orfourth and fifth
are required:The notation above is actual equal to:
"first | (second & third) | (fourth & fifth)"
.The text was updated successfully, but these errors were encountered: