Cerberus

Latest version: v1.3.7

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

Scan your dependencies

Page 3 of 5

0.9.2

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

Released on September 23, 2015

- Fix: don't rely on deepcopy since it can't properly handle complex objects in
Python 2.6.

0.9.1

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

Released on July 7 2015

- Fix: 'required' is always evaluated, independent of eventual missing
dependencies. This changes the previous behaviour whereas a required field
with dependencies would only be reported as missing if all dependencies were
met. A missing required field will always be reported. Also see the
discussion in https://github.com/pyeve/eve/pull/665.

0.9

-----------

Released on June 24 2015.
Codename: 'Mastrolindo'.

- New: 'oneof' rule which provides a list of definitions in which only one
should validate (C.D. Clark III).
- New: 'noneof' rule which provides a list of definitions that should all not
validate (C.D. Clark III).
- New: 'anyof' rule accepts a list of definitions and checks that one
definition validates (C.D. Clark III).
- New: 'allof' rule validates if if all definitions validate (C.D. Clark III).
- New: 'validator.validated' takes a document as argument and returns
a validated document or 'None' if validation failed (Frank Sachsenheim).
- New: PyPy support (Frank Sachsenheim).
- New: Type coercion (Brett).
- New: Added 'propertyschema' validation rule (Frank Sachsenheim).

- Change: Use 'str.format' in error messages so if someone wants to override
them does not get an exception if arguments are not passed.
Closes :issue:`105`. (Brett)
- Change: 'keyschema' renamed to 'valueschema', print a deprecation warning
(Frank Sachsenheim).
- Change: 'type' can also be a list of types (Frank Sachsenheim).

- Fix: useages of 'document' to 'self.document' in '_validate' (Frank
Sachsenheim).
- Fix: when 'items' is applied to a list, field name is used as key for
'validator.errors', and offending field indexes are used as keys for field
errors ({'a_list_of_strings': {1: 'not a string'}}) 'type' can be a list of
valid types.
- Fix: Ensure that additional `**kwargs` of a subclass persist through
validation (Frank Sachsenheim).
- Fix: improve failure message when testing against multiple types (Frank
Sachsenheim).
- Fix: ignore 'keyschema' when not a mapping (Frank Sachsenheim).
- Fix: ignore 'schema' when not a sequence (Frank Sachsenheim).
- Fix: allow_unknown can also be set for nested dicts.
Closes :issue:`75`. (Tobias Betz)
- Fix: raise SchemaError when an unallowed 'type' is used in conjunction with
'schema' rule (Tobias Betz).

- Docs: added section that points out that YAML, JSON, etc. can be used to
define schemas (C.D. Clark III).
- Docs: Improve 'allow_unknown' documentation (Frank Sachsenheim).

0.8.1

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

Released on Mar 16 2015.

- Fix: dependency on a sub-document field does not work. Closes :issue:`64`.
- Fix: readonly validation should happen before any other validation.
Closes :issue:`63`.
- Fix: allow_unknown does not apply to sub-dictionaries in a list.
Closes :issue:`67`.
- Fix: two tests being ignored because of name typo.
- Fix: update mode does not ignore required fields in subdocuments.
Closes :issue:`72`.
- Fix: allow_unknown does not respect custom rules. Closes :issue:`66`.
- Fix: typo in docstrings (Riccardo).

0.8

-----------

Released on Jan 7 2015.

- 'dependencies' also supports dependency values.
- 'allow_unknown' can also be set to a validation schema, in which case unknown
fields will be validated against it. Closes pyeve/eve:issue:`405`.
- New function-based custom validation mode (Luo Peng).
- Fields with empty definitions in schema were reported as non-existent. Now
they are considered as valid, whatever their value is (Jaroslav Semančík).
- If dependencies are precised for a 'required' field, then the presence of the
field is only validated if all dependencies are present (Trong Hieu HA).
- Documentation typo (Nikita Vlaznev :issue:`55`).
- [CI] Add travis_retry to pip install in case of network issues (Helgi Þormar
Þorbjörnsson :issue:`49`)

0.7.2

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

Released on Jun 19 2014.

- Successfully validate int as float type (Florian Rathgeber).

Page 3 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.