-
Notifications
You must be signed in to change notification settings - Fork 286
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
Declare field validator with decorator #585
Comments
from schematics import Model def validate_year_of_to_is_2019(func): class CustomDateType(DateType):
class DummySchema(Model):
|
When I define a model like this,
The way to specify additional validators for each field is as follows.
It would be nice if the field validator could be defined as a decorator.
The text was updated successfully, but these errors were encountered: