Skip to content

Commit

Permalink
Merge pull request #6285 from theotherjimmy/fix-6284
Browse files Browse the repository at this point in the history
Improve json schema and schema errors
  • Loading branch information
cmonr committed Mar 7, 2018
2 parents 4b322d6 + 67e76f3 commit 79bd263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def format_validation_error(self, error, path):
return self.format_validation_error(error.context[0], path)
else:
return "in {} element {}: {}".format(
path, str(".".join(error.absolute_path)), error.message)
path, str(".".join(str(p) for p in error.absolute_path)), error.message)

def __init__(self, tgt, top_level_dirs=None, app_config=None):
"""Construct a mbed configuration
Expand Down
2 changes: 1 addition & 1 deletion tools/config/definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "array",
"items": {
"type": "string",
"pattern": "(^[\\w]+$|^[\\w]+=.+$)"
"pattern": "(^[\\w()_]+$|^[\\w()_]+=.+$)"
}
},
"config_definition": {
Expand Down

0 comments on commit 79bd263

Please sign in to comment.