Cerberus

Latest version: v1.3.7

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

Scan your dependencies

Page 4 of 5

0.7.1

-------------

Released on Jun 17 2014.

- Validation schemas are now validated up-front. When you pass a Schema to the
Validator it will be validated against the supported ruleset (Paul Weaver).
Closes :issue:`39`.
- Custom validators also have access to a special 'self.document' variable that
allows validation of a field to happen in context of the rest of the document
(Josh Villbrandt).
- Validator options like 'allow_unknown' and 'ignore_none_values' are now taken
into consideration when validating sub-dictionaries. Closes :issue:`40`.

0.7

-----------

Released on May 16 2014.

- Python 3.4 is now supported.
- tox support.
- Added 'dependencies' validation rule (Lujeni).
- Added 'keyschema' validation rule (Florian Rathgeber).
- Added 'regex' validation rule. Closes :issue:`29`.
- Added 'set' as a core data type. Closes :issue:`31`.
- Not-nullable fields are validated independetly of their type definition
(Jaroslav Semančík).
- Python trove classifiers added to setup.py. Closes :issue:`32`.
- 'min' and 'max' now apply to floats and numbers too. Closes :issue:`30`.

0.6

-----------

Released on February 10 2014

- Added 'number' data type, which validates against both float and integer
values (Brandon Aubie).
- Added support for running tests with py.test
- Fix non-blocking problem introduced with 0.5 (Martin Ortbauer).
- Fix bug when _error() is calld twice for a field (Jaroslav Semančík).
- More precise error message in rule 'schema' validation (Jaroslav Semančík).
- Use 'allowed' field for integer just like for string (Peter Demin).

0.5

-----------

Released on December 4 2013

- 'validator.errors' now returns a dictionary where keys are document fields
and values are lists of validation errors for the field.
- Validator instances are now callable. Instead of `validated
= validator.validate(document)` you can now choose to do 'validated
= validator(document)' (Eelke Hermens).

0.4.0

-------------

Released on September 24 2013.

- 'validate_update' is deprecated and will be removed with next release. Use
'validate' with 'update=True' instead. Closes :issue:`21`.
- Fixed a minor encoding issue which made installing on Windows/Python3
impossible. Closes :issue:`19` (Arsh Singh).
- Fix documentation typo (Daniele Pizzolli).
- 'type' validation is always performed first (only exception being
'nullable'). On failure, subsequent rules on the same field are skipped.
Closes :issue:`18`.

0.3.0

-------------

Released on July 9 2013.

- docstrings now conform to PEP8.
- `self.errors` returns an empty list if validate() has not been called.
- added validation for the 'float' data type.
- 'nullable' rule added to allow for null field values to be accepted in
validations. This is different than required in that you can actively change
a value to None instead of omitting or ignoring it. It is essentially the
ignore_none_values, allowing for more fine grained control down to the field
level (Kaleb Pomeroy).

Page 4 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.