From 9c7830ba58277583ca0907237b7ab50b7d671aec Mon Sep 17 00:00:00 2001 From: "DHNishi@gmail.com" Date: Thu, 17 Oct 2013 19:28:46 +0000 Subject: Add a deprecated annotation for api documentation. Example Image: http://i.imgur.com/CNGWOVS.png NOTRY=true BUG=239196 Review URL: https://codereview.chromium.org/26231004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229207 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/json_schema_compiler/model.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/json_schema_compiler/model.py') diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py index 2fcb4df..cc876df 100644 --- a/tools/json_schema_compiler/model.py +++ b/tools/json_schema_compiler/model.py @@ -208,6 +208,7 @@ class Function(object): available to - |params| a list of parameters to the function (order matters). A separate parameter is used for each choice of a 'choices' parameter + - |deprecated| a reason and possible alternative for a deprecated function - |description| a description of the function (if provided) - |callback| the callback parameter to the function. There should be exactly one @@ -228,6 +229,7 @@ class Function(object): self.platforms = _GetPlatforms(json) self.params = [] self.description = json.get('description') + self.deprecated = json.get('deprecated') self.callback = None self.optional = json.get('optional', False) self.parent = parent -- cgit v1.1