We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Suppose I have an array of messages with field id. How can I validate uniqueness within the array?
id
message Student { string id = 1; } message Class { repeated Student students = 1; // Possible to validate unique ids? }
The text was updated successfully, but these errors were encountered:
Cross-posted in protovalidate (just discovered it). Feel free to close this if that project is likely the better place to solve this problem.
protovalidate
Sorry, something went wrong.
Correct, this is not possible in PGV, but can likely be handled via a CEL expression in protovalidate.
No branches or pull requests
Suppose I have an array of messages with field
id
. How can I validate uniqueness within the array?The text was updated successfully, but these errors were encountered: