Index: trunk/src/tools/json_schema_compiler/schema_loader.py |
=================================================================== |
--- trunk/src/tools/json_schema_compiler/schema_loader.py (revision 226848) |
+++ trunk/src/tools/json_schema_compiler/schema_loader.py (working copy) |
@@ -59,5 +59,8 @@ |
else: |
sys.exit('Did not recognize file extension %s for schema %s' % |
(schema_extension, schema)) |
+ if len(api_defs) != 1: |
+ sys.exit('File %s has multiple schemas. Files are only allowed to contain' |
+ 'a single schema.' % schema) |
return api_defs |