Nikita Grishko
31683f8dc4
Errors format ( #179 )
...
* Get rid of `track` in errors
* Move `display_as_type` func into utils module
* Get rid of error as `namedtuple`
* Renamed `Error.index` to `Error.loc`
* New way to get error type
* New way to get error message
* New errors format
* Renamed `flatten_errors` property to `flat_errors`
* `__slots__` for `Error` and `ValidationError`
* `loc` as `tuple`
* Tests
* Review fixes
* `flatten_errors` as generator
2018-05-23 14:50:04 +01:00
Samuel Colvin
a3a9b14531
validate attributes of parent models ( #141 )
...
* validate attributes of parent models, fix #137
* add history
2018-03-25 17:46:55 +01:00
Samuel Colvin
a8096959e2
check for invalid validators ( #140 )
...
* check for invalid validators
* documentation and history
2018-03-25 16:41:48 +01:00
Samuel Colvin
89201f08b0
add wildcard validators ( #128 )
...
* add wildcard validators
* update docs and history
* more tests
* history links
2018-02-06 19:32:30 +00:00
Samuel Colvin
7050654062
better tests for validator checks
2017-11-08 15:39:44 +00:00
Samuel Colvin
ed2b3f2afd
errors for invalid validator use
2017-11-08 15:36:19 +00:00
Samuel Colvin
acf3128dcd
Validator always ( #102 )
...
* validators called always, fix #100
* testing validate always validators
* adding docs
2017-11-08 14:37:01 +00:00
Samuel Colvin
ae6f5e7192
prevent duplicate validators ( #101 )
...
* prevent duplicate validators
* uprev and history
2017-11-08 13:53:14 +00:00
Samuel Colvin
91f962e533
replace values() with dict() ( #99 )
...
* replace values(), with dict(), fix #98
* add history and test
2017-11-07 13:28:42 +00:00
Samuel Colvin
dfc5924936
Better validators ( #97 )
...
* working on improved validators
* full tests for validators
* tweask
* tweaking fields.py
* adding docs
* add history
* fix classmethod validators
2017-11-07 13:06:44 +00:00