Releases: smarie/python-valid8
4.2.0 - validation lib improvements
-
Removed the useless 'strict' length validators: removed
min_len_strictandmax_len_strictinvalidateentry point, and removedstrictargument invalidation_lib'sminlenandmaxlen. 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
emptyandnon_emptybuilt-in validators invalidation_lib. Newemptyargument invalidate. Fixes #31.
See documentation page for details.
4.1.2 - Bugfix for python 3.5.2
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
Fixed #30.
See documentation page for details.
4.1.0 - `validate` instance/subclass fix
assert_instance_ofandassert_subclass_of(used in thevalidateinline entry point) fixed so as to supportEnumtypes. Fixed #28. Important: onlytupleare now supported when several types are provided invalidate'sinstance_ofandsubclass_ofarguments. This is to has a closer behaviour to the python stdlib.
See documentation page for details.
4.0.1 - better mini-lambda compliance
- Adapted code to leverage latest
mini_lambda. Fixes #27.
See documentation page for details.
4.0.0 - python 2.7 support + minor improvements
-
Python 2.7 is now supported. This fixes #25.
-
Dependencies updated: now
makefunis used instead ofdecoratorto create signature-preserving wrappers.decopatchis also used to create all the decorators consistently. -
assert_instance_ofandassert_subclass_of(used in thevalidateinline 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
validatemethod: removed exception causes. -
Fixed type inspection for old python 3.5 versions.
See documentation page for details.