| Index: tools/json_schema_compiler/json_schema.py
|
| diff --git a/tools/json_schema_compiler/json_schema.py b/tools/json_schema_compiler/json_schema.py
|
| index f51cece5d56102515ac3da0f9e58d1f24c8126fa..636f837b96379ecc25e4b84c13969d79292a95e5 100644
|
| --- a/tools/json_schema_compiler/json_schema.py
|
| +++ b/tools/json_schema_compiler/json_schema.py
|
| @@ -10,6 +10,7 @@ import sys
|
| _script_path = os.path.realpath(__file__)
|
| sys.path.insert(0, os.path.normpath(_script_path + "/../../"))
|
| import json_comment_eater
|
| +import schema_util
|
|
|
| def DeleteNocompileNodes(item):
|
| def HasNocompile(thing):
|
| @@ -32,9 +33,10 @@ def DeleteNocompileNodes(item):
|
|
|
| def Load(filename):
|
| with open(filename, 'r') as handle:
|
| - return DeleteNocompileNodes(
|
| + schemas = DeleteNocompileNodes(
|
| json.loads(json_comment_eater.Nom(handle.read())))
|
| -
|
| + schema_util.PrefixSchemasWithNamespace(schemas)
|
| + return schemas
|
|
|
| # A dictionary mapping |filename| to the object resulting from loading the JSON
|
| # at |filename|.
|
|
|