Skip to content

Commit

Permalink
Merge branch 'missing_quotes_in_example'
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaiarocci committed Apr 16, 2015
2 parents f084f84 + 2a04e6b commit 052a26d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -17,6 +17,7 @@ Patches and Suggestions
- Harro van der Klauw
- Jaroslav Semančík
- Kaleb Pomeroy
- Kirill Pavlov
- Lujeni
- Luo Peng
- Martijn Vermaat
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Expand Up @@ -122,11 +122,11 @@ unknown fields will be validated against it: ::
... }
... }

>>> v.validate({'name': john', 'a_dict':{'an_unknown_field': 'is allowed'}}, schema)
>>> v.validate({'name': 'john', 'a_dict':{'an_unknown_field': 'is allowed'}}, schema)
True

>>> # this fails as allow_unknown is still False for the parent document.
>>> v.validate({'name': john', 'an_unknown_field': 'is not allowed', 'a_dict':{'an_unknown_field': 'is allowed'}}, schema)
>>> v.validate({'name': 'john', 'an_unknown_field': 'is not allowed', 'a_dict':{'an_unknown_field': 'is allowed'}}, schema)
False

>>> v.errors
Expand Down

0 comments on commit 052a26d

Please sign in to comment.