Index: tools/json_schema_compiler/compiler.py |
diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py |
index 0813ee55a9ba43e48029c7ff091a8b0c47f08e4e..ae9237336f41af191a39fe1dbe87791ee3e16c09 100755 |
--- a/tools/json_schema_compiler/compiler.py |
+++ b/tools/json_schema_compiler/compiler.py |
@@ -57,6 +57,13 @@ def handle_single_schema(filename, dest_dir, root, root_namespace): |
# Load type dependencies into the model. |
# TODO(miket): do we need this in IDL? |
for referenced_schema in referenced_schemas: |
+ split_schema = referenced_schema.split(':', 1) |
+ if len(split_schema) > 1: |
+ if split_schema[0] != 'api': |
+ continue |
+ else: |
+ referenced_schema = split_schema[1] |
+ |
referenced_schema_path = os.path.join( |
os.path.dirname(schema), referenced_schema + '.json') |
referenced_api_defs = json_schema.Load(referenced_schema_path) |