Skip to content

Commit

Permalink
adjsuted validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-bay committed Jun 2, 2020
1 parent 0892411 commit 8a6dc01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maestrowf/datastructures/yamlspecification.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ def validate_schema(parent_key, instance, schema):
path
), context_message)
raise jsonschema.ValidationError(
"In {0}, {1}."
.format(parent_key, context_message)
"The value '{0}' in field {1} of {2} is not of type '{3}' or does not conform to the format '$(VARNAME)'."
.format(error.instance, path, parent_key, error.validator_value[0]["type"])
)

else:
Expand Down

0 comments on commit 8a6dc01

Please sign in to comment.