[asterisk-commits] dlee: trunk r400959 - in /trunk: ./ rest-api-templates/asterisk_processor.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 15 08:44:47 CDT 2013


Author: dlee
Date: Tue Oct 15 08:44:45 2013
New Revision: 400959

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400959
Log:
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

Modified:
    trunk/   (props changed)
    trunk/rest-api-templates/asterisk_processor.py

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/rest-api-templates/asterisk_processor.py
URL: http://svnview.digium.com/svn/asterisk/trunk/rest-api-templates/asterisk_processor.py?view=diff&rev=400959&r1=400958&r2=400959
==============================================================================
--- trunk/rest-api-templates/asterisk_processor.py (original)
+++ trunk/rest-api-templates/asterisk_processor.py Tue Oct 15 08:44:45 2013
@@ -218,6 +218,7 @@
         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)




More information about the asterisk-commits mailing list