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
Vec
Is it possible to validate the length of a Vec, and the inner value such as an integer?
Given this example, this Vec must have a length of 1-10, and the inner u32 must fall within the range of 1-100. The code below is invalid
u32
#[derive(Debug, Deserialize, Validate)] struct Data { #[validate(length(min = 1, max = 10), range(min = 1, max = 100))] ids: Vec<u32> }
The text was updated successfully, but these errors were encountered:
Not right now
Sorry, something went wrong.
No branches or pull requests
Is it possible to validate the length of a
Vec
, and the inner value such as an integer?Given this example, this
Vec
must have a length of 1-10, and the inneru32
must fall within the range of 1-100. The code below is invalidThe text was updated successfully, but these errors were encountered: