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
For example, if you validate the following input, the value will be validated. Is there any way to validate the values element?
value
values
use async_graphql::validators::{Email, MAC}; use async_graphql::*; pub struct Query; #[Object] impl Query { async fn input( &self, #[graphql(validator(or(Email, MAC(colon = "false"))))] value: String, #[graphql(validator(or(Email, MAC(colon = "false"))))] values: Vec<String>, ) -> bool { true } }
The text was updated successfully, but these errors were encountered:
Let me think about it.
Sorry, something went wrong.
Add support for the list operator to the input value validator. #579
list
28d22db
I added a list operator, here is an example:
async-graphql/tests/input_validators.rs
Line 1834 in 28d22db
Thanks for the feedback.
It's working as expected.
thank you!!
No branches or pull requests
For example, if you validate the following input, the
value
will be validated.Is there any way to validate the
values
element?The text was updated successfully, but these errors were encountered: