-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #379: Regression with Any and required
In 0.9.3, the `Schema`s associated to the `Any` validators where setup with the `required` argument given to `Any` https://github.com/alecthomas/voluptuous/blob/0.9.3/voluptuous/validators.py#L218 This allow us to write something like: ``` Schema(Any({'a': int}, {'b': str}, required=True)) ``` In recent version, the `required` keyword is ignored. This patch pass the required argument to the `Schema`s associated with the `SubValidator`.
- Loading branch information
Cédric Cabessa
committed
Jan 11, 2019
1 parent
7e18e1c
commit 7b4efb4
Showing
2 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters