Skip to content

Releases: smarie/python-valid8

4.2.0 - validation lib improvements

09 Sep 11:00
Compare
Choose a tag to compare
  • Removed the useless 'strict' length validators: removed min_len_strict and max_len_strict in validate entry point, and removed strict argument in validation_lib's minlen and maxlen. Indeed length is an integer by python framework definition, so it is always more compact to do +1 or -1 to the number. Fixes #29.

  • New empty and non_empty built-in validators in validation_lib. New empty argument in validate. Fixes #31.

See documentation page for details.

4.1.2 - Bugfix for python 3.5.2

01 Aug 08:02
Compare
Choose a tag to compare

Fixed #30 again, and fixed issue with python 2 appearing with the fix.

See documentation page for details.

4.1.1 - Bugfix for python 3.5.2

30 Jul 14:04
Compare
Choose a tag to compare

4.1.0 - `validate` instance/subclass fix

23 Apr 10:30
Compare
Choose a tag to compare
  • assert_instance_of and assert_subclass_of (used in the validate inline entry point) fixed so as to support Enum types. Fixed #28. Important: only tuple are now supported when several types are provided in validate's instance_of and subclass_of arguments. This is to has a closer behaviour to the python stdlib.

See documentation page for details.

4.0.1 - better mini-lambda compliance

19 Apr 11:30
Compare
Choose a tag to compare
  • Adapted code to leverage latest mini_lambda. Fixes #27.

See documentation page for details.

4.0.0 - python 2.7 support + minor improvements

19 Apr 07:01
Compare
Choose a tag to compare
  • Python 2.7 is now supported. This fixes #25.

  • Dependencies updated: now makefun is used instead of decorator to create signature-preserving wrappers. decopatch is also used to create all the decorators consistently.

  • assert_instance_of and assert_subclass_of (used in the validate inline entry point) were improved so as to benefit from python 3's capability to compare with several classes, and so that users can provide the reference classes as an iterable rather than a set. Fixes #26.

  • More compact tracebacks for validate method: removed exception causes.

  • Fixed type inspection for old python 3.5 versions.

See documentation page for details.