]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
My doc correction in r400842 had a silly bug.
authorDavid M. Lee <dlee@digium.com>
Tue, 15 Oct 2013 13:43:05 +0000 (13:43 +0000)
committerDavid M. Lee <dlee@digium.com>
Tue, 15 Oct 2013 13:43:05 +0000 (13:43 +0000)
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)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400958 65c4cc65-6c06-0410-ace0-fbb531ad65f3

rest-api-templates/asterisk_processor.py

index 2ea552932718214fea5d6f63d7e05d17a6b74206..e7a0b5fd1a8f40f85726fc8e8673afc73dcbe305 100644 (file)
@@ -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)