-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
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
Passing context with custom validator #292
Comments
Yes, passing context doesn't work for custom validations and for IsDefined decorator either. mapContext function in ValidationExecutor runs only once for default metadatas and not for definedMetadatas or customValidationMetadatas. I guess fix should be rather simple. |
Context wasn't being passed in for isDefined and custom validators. typestack#292
Context wasn't being passed in for isDefined and custom validators. typestack#292
Context wasn't being passed in for isDefined and custom validators. typestack#292
Context wasn't being passed in for isDefined and custom validators. typestack#292
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm trying to pass a context object on my custom validator but I can't access it from the
ValidationError
object. Am I missing something?The text was updated successfully, but these errors were encountered: