Skip to content

Commit

Permalink
fixes #242
Browse files Browse the repository at this point in the history
  • Loading branch information
o-smirnov committed Feb 19, 2024
1 parent c5dde88 commit 4c49937
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scabha/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def validate_parameters(params: Dict[str, Any], schemas: Dict[str, Any],

# check choice-type parameters
for name, value in validated.items():
if value is None:
continue
schema = schemas[name]
if schema.choices and value not in schema.choices:
raise ParameterValidationError(f"{mkname(name)}: invalid value '{value}'")
Expand Down

0 comments on commit 4c49937

Please sign in to comment.