-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: issue with empty optional keywords
If specifying only a keyword without the data for an optional keyword in the yaml we would not get a validation error. I.e. the json-schema did not capture the error. In addition, the validation context setup did not account for None in the data, expecting either unset or some data (not None). This caused a type error since we then tried to use None as a list. Adding only `MODELS:` to the yaml would reproduce the error. Removing `MODELS:` or adding an empty list `MODELS: []` would make it valid.
- Loading branch information
Showing
4 changed files
with
79 additions
and
73 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
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