Skip to content
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

Overriding validation #31

Open
tomchristie opened this issue Mar 5, 2019 · 0 comments
Open

Overriding validation #31

tomchristie opened this issue Mar 5, 2019 · 0 comments

Comments

@tomchristie
Copy link
Member

  1. Support a validator, or list of validators:

date_of_travel = Date(validator=may_not_be_in_past)

  1. Support validator methods:
@classmethod
def validate_date_of_travel(cls, value):
    ...
  1. Support a validate_all or something similar.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant