Valideer

Latest version: v0.4.2

Safety actively analyzes 623677 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.2

=====
- Added ``ignore_optional_property_errors`` optional parameter in ``parse()`` and
``parsing()``.

0.4.1

=====
- Added ``returns`` decorator.

0.4

===
- Python 3 support.

0.3.2

=====
- Added ``Nullable.default_object_property``.

0.3.1

=====
- Added ``parsing()`` context manager.
- Added ``Object.REMOVE`` sentinel for removing additional properties.
- Made optional the schema parameter of the ``Range`` validator.
- Fixed docstrings to be compatible with Sphinx.

0.3

===
- Exposed as top level functions the ``parse``, ``register`` and``register_factory``
Validator static methods (the latter are still kept for backwards compatibility).
- Allow the Nullable default to be a zero-arg callable.
- Added AllOf() composite validator.
- Added ChainOf() composite validator.
- Allow specifying schema of additional object properties or disallowing them,
either locally (by passing an ``additional`` parameter to ``Object``) or
globally (by setting the ``Object.ADDITIONAL_PROPERTIES`` class attribute).
- Added an optional ``additional_properties`` parameter to ``parse()`` to allow
specifying for a single parse call the handling of additional object properties.
- Added an optional ``required_properties`` parameter to ``parse()`` to allow
specifying for a single parse call whether object properties are required or
optional by default. Specifying the same behaviour globally through the
``Object.REQUIRED_PROPERTIES`` attribute is still supported.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.