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

Unified Diff: tools/json_schema_compiler/model.py

Issue 14322003: Inline docs render properly in extensions doc server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment and whitespace fixes Created 7 years, 8 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: tools/json_schema_compiler/model.py
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index d6b6efc1a12f3519777d08b4995fa43d27e8c8ea..521a8a289cce08bc59caaa1013d04a42f76513fb 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -258,9 +258,11 @@ class Property(object):
Properties:
- |name| name of the property as in the json. This shouldn't change since
it is the key used to access DictionaryValues
+ - |inline_type| the type of an inlined document
- |unix_name| the unix_style_name of the property. Used as variable name
- |optional| a boolean representing whether the property is optional
- |description| a description of the property (if provided)
+ - |extended_description| used by enum's to describe their potential values
- |type_| the model.Type of this property
- |simple_name| the name of this Property without a namespace
"""
@@ -269,11 +271,13 @@ class Property(object):
"""
self.parent = parent
self.name = name
+ self.inline_type = json.get('inline_type', None)
self._unix_name = UnixName(self.name)
self._unix_name_used = False
self.origin = origin
self.simple_name = _StripNamespace(self.name, namespace)
self.description = json.get('description', None)
+ self.extended_description = json.get('extended_description', None)
self.optional = json.get('optional', None)
self.instance_of = json.get('isInstanceOf', None)

Powered by Google App Engine
This is Rietveld 408576698