Skip to content

Commit

Permalink
Fix validation crash under Cerberus 1.2
Browse files Browse the repository at this point in the history
Now cerberus raises an exception when a schema validation rule is
non-existant, which surfaced a previous typo.

Closes #1137.
  • Loading branch information
nicolaiarocci committed Apr 23, 2018
1 parent d2f41b8 commit 0e00bac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Development

Version 0.8
~~~~~~~~~~~
- Fix: Crash with Cerberus 1.2. Closes #1137.
- Docs: Add link to the Eve course. It was authored by the project author, and
it is hosted by TalkPython Training.
- New: Add suport for mongo's ``$box`` geo query operator. Closes #1122.
Expand Down
2 changes: 1 addition & 1 deletion eve/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _normalize_default_setter(self, mapping, schema, field):
field)

def _validate_dependencies(self, dependencies, field, value):
""" {'type': ['dict', 'hashable', 'hashables']} """
""" {'type': ['dict', 'hashable']} """
persisted = self._filter_persisted_fields_not_in_document(dependencies)
if persisted:
dcopy = copy.copy(self.document)
Expand Down

0 comments on commit 0e00bac

Please sign in to comment.