Skip to content

Commit

Permalink
Merge e92d2d6 into d95d437
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Oct 25, 2019
2 parents d95d437 + e92d2d6 commit ee07531
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions schema/schemavalidator.py
Expand Up @@ -54,14 +54,15 @@ def validate(data, version, url):
print('\n Path for error: {}'.format(printPath(err.path, err.message)))
context = err.instance
print (json.dumps(err.instance, indent=4))
for key in context:
print('****')
print(key)
print('****')
if isinstance(context[key], list):
context[key] = '[ ... ]'
elif isinstance(context[key], dict):
context[key] = '{ ... }'
if isinstance(context, dict):
for key in context:
print('****')
print(key)
print('****')
if isinstance(context[key], list):
context[key] = '[ ... ]'
elif isinstance(context[key], dict):
context[key] = '{ ... }'
errorsJson.append({
'title': 'Error {} of {}.\n Message: {}'.format(errorCount, len(errors), err.message),
'detail': detail,
Expand Down

0 comments on commit ee07531

Please sign in to comment.