dmontagu
cccf39e7c9
Fix raised ValidationError for model-type fields ( #820 )
2019-09-20 12:43:58 +01:00
Samuel Colvin
16263bafea
None behaviour ( #803 )
...
* tweaks to None behaviour
* prevent sub_fields for Optional fields by default
* rewrite None validation
* rename whole > each_item on validators
* cleanup processing of the Json type
* fix schema coverage and cleanup
* tweak validate_model
* change and docs
* fix validators on optional fields
* coverage
* remove is_none_validator
* minor performance improvements to ErrorWrapper
* fix coverage
* fix PaymentCardNumber
* undo schema changes, fix
* tweak validators
2019-09-18 11:38:21 +01:00
Samuel Colvin
0e8cfba713
small performance improvements to validators and fields ( #763 )
...
* small performance improvements to validators and fields
* simplify ErrorWrapper and ValidationError
* more cleanup of errors, combine test_error_wrapper.py and test_error.py
* tweak datetime_parse.py
* fix for python 3.6
* add change
* fix bug with int or float passed to datetime.time
2019-08-18 16:48:39 +01:00
Samuel Colvin
5837acb288
test demonstrating internal ValidationError ( #738 )
...
* test demonstrating internval ValidationError
* fix #736
2019-08-11 14:14:02 +01:00
Nikita Grishko
4f4e22ef47
Error context and message ( #183 )
...
* POC of error context and message
* Move type errors to the `errors.py` module; Change errors interface a bit
* Rename `.as_dict()` to `.dict()`
* Fix `PydanticErrorMixin` constructor
* Rename `exceptions.py` to `error_wrappers.py`
* Do not include nullable `ctx`
* Fix tests
* Added `int_validator`; Added `IntegerError`
* Added `float_validator`; Added `FloatError`
* Get rid of `__mro__` in prior of `exc.code`
* Removed `min_number_size` and `max_number_size` from config (#174 )
* Added `NumberMinSizeError` and `NumberMaxSizeError`
* Added `NoneIsNotAllowedError`
* Added `EnumError`
* Added `path_validator`; Added `PathError`
* Added `DictError`
* Added `ListError`
* Added `TupleError`
* Added `SetError`
* Added `datetime` related errors
* Added `bytes` and `str` related errors
* Added `SequenceError`
* Improved code coverage
* Display error context in string representation of validation error
* Redefine error message templates using config
* Review fixes
* Updated changelog
2018-05-31 14:35:38 +01:00