Releases: smarie/python-valid8
4.2.0 - validation lib improvements
-
Removed the useless 'strict' length validators: removed
min_len_strict
andmax_len_strict
invalidate
entry point, and removedstrict
argument invalidation_lib
'sminlen
andmaxlen
. 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
andnon_empty
built-in validators invalidation_lib
. Newempty
argument 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_of
andassert_subclass_of
(used in thevalidate
inline entry point) fixed so as to supportEnum
types. Fixed #28. Important: onlytuple
are now supported when several types are provided invalidate
'sinstance_of
andsubclass_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
- 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
makefun
is used instead ofdecorator
to create signature-preserving wrappers.decopatch
is also used to create all the decorators consistently. -
assert_instance_of
andassert_subclass_of
(used in thevalidate
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.