Skip to content

Latest commit

 

History

History
174 lines (106 loc) · 3.41 KB

CHANGELOG.md

File metadata and controls

174 lines (106 loc) · 3.41 KB

Changelog

3.5.0

  • [feature] add NUMBER that accepts float and integer

3.4.1

  • Fix dsv decorator to work with DSVError.
  • Fix dsv_feature spec_name should not show empty value.

3.4.0

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.

3.3.0

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

3.2.0

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

3.1.0

Changes:

  • [feature] dsv decorator can support only Django Environment

3.0.1

Changes:

  • [fix] Cherry-pick eac8af90e0313fd312edba1e7f18b3f537bc80ce for features (combining query_params in POST/PUT/DELETE request)

3.0.0

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.

2.1.1

Changes:

  • [fix] Export FLOAT, DATE_OBJECT, DATETIME_OBJECT check str

2.1.0

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

2.0.0

Changes:

  • [feature] add multirow option in @dsv and def validate_data_spec to validate list of SPEC naturally.
  • Update README

1.9.0

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

1.8.0

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 of print
  • [internal] More type hint
  • Postpone {KEY_COEXISTS, ANY_KEY_EXISTS} deprecation, will remove them in 1.9.0
  • Update README

1.7.0

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

1.6.0

Changes:

  • Support checks as keyword argument when building checker.
  • Add test cases.

1.5.0

Changes:

  • Add type hints
  • Support strict mode to detect unexpected key/value parameters

1.4.0

Changes:

  • Improve error message readability
  • Provide reset_msg_level function to change the displayed messages
  • Add allow_none option for Checker to support None value

1.3.1

Changes:

1.3.0

Changes:

  • Fix package version
  • String type UUID now can pass UUIDValidator

...