- [feature] add
NUMBER
that accepts float and integer
- Fix
dsv
decorator to work withDSVError
. - Fix dsv_feature
spec_name
should not show empty value.
Changes:
- Drop support for Python 3.6
- [feature]
dsv
decorator now have identical behavior for Django and DRF. - [feature] new dsv_feature
spec_name
to customize the spec name in error messages.
Changes:
- DEPRECATIONS: The decorators support to Django version 1.x and 2.x is dropped. The minimum supported version is Django 3.0.
- [feature]
dsv
decorator support loading payload from Django WSGIRequest for Content-Type: application/json
Changes:
-
[feature]
dsv
decorator support Django ASGIRequest class -
[feature] Support validating request data with non-python variable naming convention keys by the
alias' keyword in
Checker`i.e.
/some/endpoint?a.b=3&c.d=ok&array[]=1&array[]=2&array[]=3
Changes:
- [feature]
dsv
decorator can support only Django Environment
Changes:
- [fix] Cherry-pick
eac8af90e0313fd312edba1e7f18b3f537bc80ce
for features (combining query_params in POST/PUT/DELETE request)
Changes:
- [feature] Support class-based check
- [feature] Support nested spec class
- [feature] Support combining request query parameters with payload for POST/PUT/DELETE Request
- Checker keyword "extra" is removed.
Changes:
- [fix] Export
FLOAT
,DATE_OBJECT
,DATETIME_OBJECT
check str
Changes:
- [feature] add
FLOAT
,DATE_OBJECT
,DATETIME_OBJECT
check to validate python built-in type. Derived instances are not considered valid and you can use custom spec in these cases. - Update README
Changes:
- [feature] add
multirow
option in@dsv
anddef validate_data_spec
to validate list of SPEC naturally. - Update README
Changes:
- [feature] new dsv_feature
err_mode
to collect all validation errors into exception arguments. - [improvement] Spec name is now added before the field name in error message.
- Check
KEY_COEXISTS
,ANY_KEY_EXISTS
are deprecated. - Update README
Changes:
- [fix] COND_EXIST now works with other checks correctly.
- [feature] Add new check
FOREACH
, used for any iterable. - [behavior-change]
LIST_OF
enforce LIST type validation as well - [behavior-change] Use
warning.warn
instead ofprint
- [internal] More type hint
- Postpone {KEY_COEXISTS, ANY_KEY_EXISTS} deprecation, will remove them in 1.9.0
- Update README
Changes:
- Add new check COND_EXIST to support conditional key existence. More sample usage in test.
- Add deprecating messages for Check: KEY_COEXISTS, ANY_KEY_EXISTS
- Add test cases.
- DEPRECATIONS: KEY_COEXISTS, ANY_KEY_EXISTS will be removed in 1.8.0
Changes:
- Support checks as keyword argument when building checker.
- Add test cases.
Changes:
- Add type hints
- Support strict mode to detect unexpected key/value parameters
Changes:
- Improve error message readability
- Provide
reset_msg_level
function to change the displayed messages - Add
allow_none
option forChecker
to supportNone
value
Changes:
- Change email validator regular expression (https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address)
Changes:
- Fix package version
- String type UUID now can pass UUIDValidator
...