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
The documentation indicates that the code can be overridden for a custom validator.
https://github.com/akkie/validator?tab=readme-ov-file#message-and-code
But this doesn't work. There is also no test for it.
The text was updated successfully, but these errors were encountered:
Specifying a custom Error code for Custom Validation checks fails. eg
#[derive(Validate, Deserialize)] pub struct ExampleStruct { #[validate(custom = "custom_check", code = "Custom error")] foo: String, }
When using a custom validator like this, when a code is specified, Compiler errors with "validate not implemented for this struct"
The bellow example works just fine however.
#[derive(Validate, Deserialize)] pub struct ExampleStruct { #[validate(custom = "custom_check") foo: String, }
Sorry, something went wrong.
Can you check with #249 ?
No branches or pull requests
The documentation indicates that the code can be overridden for a custom validator.
https://github.com/akkie/validator?tab=readme-ov-file#message-and-code
But this doesn't work. There is also no test for it.
The text was updated successfully, but these errors were encountered: