diff options
author | cduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 22:12:43 +0000 |
---|---|---|
committer | cduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 22:12:43 +0000 |
commit | e975d11d11145ede2784fc263355a3fde8eb8f71 (patch) | |
tree | 7c04ff91bf9c50293f3cf417c1f8a3230309765b /tools/json_schema_compiler | |
parent | 60512b89e72e603e526f4bb2f956cfa3c3c89438 (diff) | |
download | chromium_src-e975d11d11145ede2784fc263355a3fde8eb8f71.zip chromium_src-e975d11d11145ede2784fc263355a3fde8eb8f71.tar.gz chromium_src-e975d11d11145ede2784fc263355a3fde8eb8f71.tar.bz2 |
Extensions Docs Server: fix rendering of the Devtools API.
This change splits devtools_api.json into a separate file per namespace so that
JSON schema compiler can parse it. Without that, HandlebarDictGenerator can't
access the API, and the docs server can't render it
BUG=131095
Review URL: https://chromiumcodereview.appspot.com/10797039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149291 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r-- | tools/json_schema_compiler/model.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py index 2351ecd..4de04c4 100644 --- a/tools/json_schema_compiler/model.py +++ b/tools/json_schema_compiler/model.py @@ -85,7 +85,8 @@ class Type(object): if not ( 'properties' in json or 'additionalProperties' in json or - 'functions' in json): + 'functions' in json or + 'events' in json): raise ParseException(self, name + " has no properties or functions") self.type_ = PropertyType.OBJECT self.name = name |