Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: trunk/src/tools/json_schema_compiler/schema_loader.py

Issue 25940002: Revert 226826 "This is a preliminary patch to auto-generate the ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « trunk/src/tools/json_schema_compiler/model.py ('k') | trunk/src/tools/json_schema_compiler/test/features_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698