Skip to content

Commit 79bd263

Browse files
authored
Merge pull request #6285 from theotherjimmy/fix-6284
Improve json schema and schema errors
2 parents 4b322d6 + 67e76f3 commit 79bd263

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def format_validation_error(self, error, path):
392392
return self.format_validation_error(error.context[0], path)
393393
else:
394394
return "in {} element {}: {}".format(
395-
path, str(".".join(error.absolute_path)), error.message)
395+
path, str(".".join(str(p) for p in error.absolute_path)), error.message)
396396

397397
def __init__(self, tgt, top_level_dirs=None, app_config=None):
398398
"""Construct a mbed configuration

tools/config/definitions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"type": "array",
1212
"items": {
1313
"type": "string",
14-
"pattern": "(^[\\w]+$|^[\\w]+=.+$)"
14+
"pattern": "(^[\\w()_]+$|^[\\w()_]+=.+$)"
1515
}
1616
},
1717
"config_definition": {

0 commit comments

Comments
 (0)