Samuel Colvin
04391da318
fix for 'missing' error with validate_all or validate_always ( #381 )
...
* fix for 'missing' error with validate_all or validate_always
* update HISTORY
2019-02-04 21:57:44 +00:00
Samuel Colvin
19320bf775
improve settings priority, ( #343 )
...
* improve settings priority, ref #341
* add HISTORY.rst
* move is_complex and rename _build_environ
* tweak
2018-12-29 12:31:53 +00:00
Jason Kuhrt
a0aa9e78cd
feat: add support for case insensitive env names ( #313 )
...
* feat: add support for case insensitive env names
Closes #277
* feedback: just alias os.environ
* doc: update history
* doc: mention case_insensitive option
* refactor: feedback if-else expression assignment
* fix: formatting
* chore: encode black configuration in file to support IDEs
* docs: fix example
* feedback: no suppport for IDEs in this PR
* feedback: style
2018-11-26 14:57:09 +00:00
Samuel Colvin
64ada930fc
aliases, fix #275 , replace #282 ( #286 )
2018-11-15 12:01:05 +00:00
Samuel Colvin
15850a43c5
moving to black ( #287 )
...
* moving to black
* put back flake8
* remove isort option
* putting back isort
* uprev pycodestyle
* remove black from docs/examples
* tweak parse.py
2018-11-15 11:30:07 +00:00
Samuel Colvin
f0f9de5f96
improve docs on error handling ( #198 )
...
* improve docs on error handling
* change ValidationError signature
* cleanup
* rename _raw_errors > raw_errors
* improve _display_error_type_and_ctx
2018-06-11 13:06:50 +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
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
bc931ba790
safe check for complex models with env settings
2017-11-13 15:12:23 +00:00
Samuel Colvin
02dc2f2697
allow json env vars ( #96 )
...
* allow json env vars
* add docs
2017-11-07 11:26:16 +00:00
Samuel Colvin
378c96888e
simplifying errors
2017-07-08 18:22:57 +01:00
Samuel Colvin
ea88afb212
allow aliases
2017-05-31 13:41:53 +01:00
Samuel Colvin
90a2b6bfe3
fix enum validators ignore_extra on settings, fix #13
2017-05-11 22:19:11 +01:00
Samuel Colvin
35add310cc
improve error display
2017-05-10 12:43:29 +01:00
Samuel Colvin
24b9fdcd86
removing 'validator' from exception message
2017-05-08 17:43:39 +01:00
Samuel Colvin
3673c11d53
improving coverage
2017-05-08 11:54:43 +01:00
Samuel Colvin
003c0a747b
adding basic tests
2017-05-05 13:34:59 +01:00