summaryrefslogtreecommitdiff
path: root/rest-api-templates
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-10-15 13:44:45 +0000
committerDavid M. Lee <dlee@digium.com>2013-10-15 13:44:45 +0000
commit55e15a2cc92b9c90dbe0d97d20e5a89430016deb (patch)
treec16965a0029e5032b468ed7a54fb4f1eaaec0c0d /rest-api-templates
parent2127848d6c09a59d10844c12ec2175c4c820b46d (diff)
My doc correction in r400842 had a silly bug.
Because I added a wiki_description to models and not their properties, the rendered wiki page had the model description instead of the property descriptions, which looks very silly indeed. (closes issue ASTERISK-22705) ........ Merged revisions 400958 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api-templates')
-rw-r--r--rest-api-templates/asterisk_processor.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rest-api-templates/asterisk_processor.py b/rest-api-templates/asterisk_processor.py
index 2ea552932..e7a0b5fd1 100644
--- a/rest-api-templates/asterisk_processor.py
+++ b/rest-api-templates/asterisk_processor.py
@@ -218,6 +218,7 @@ class AsteriskProcessor(SwaggerPostProcessor):
if prop.name != prop.name.lower():
raise SwaggerError("Property name should be all lowercase",
context)
+ prop.wiki_description = wikify(prop.description)
def process_type(self, swagger_type, context):
swagger_type.c_name = snakify(swagger_type.name)