jpmckinney / validictory

🎓 deprecated general purpose python data validator
Other
240 stars 57 forks source link

Is there a way to validate datetime objects? #94

Closed palewire closed 8 years ago

jamesturk commented 8 years ago

There is, https://github.com/sunlightlabs/billy/blob/7763b7d705c0e120c157fe86dc5a72924f2c3277/billy/scrape/validator.py is an example of it (accepts date objects as well in this case, but any validate_type_foo method is called if type: "foo" is specified in the schema.