Skip to content

Commit

Permalink
clarify merge of validators
Browse files Browse the repository at this point in the history
  • Loading branch information
danopz committed Feb 22, 2018
1 parent ee0a291 commit 79eb3c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flex/validation/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def construct_parameter_validators(parameter, context):
if 'schema' in parameter:
schema_validators = construct_schema_validators(parameter['schema'], context=context)
for key, value in schema_validators.items():
# merge validators for those sharing the same key (like 'required') to not omit some
if key in validators:
validators[key] += value
else:
Expand Down

0 comments on commit 79eb3c4

Please sign in to comment.