mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
rest-api: Updates for new documentation site
The new documentation site uses traditional markdown instead
of the Confluence flavored version. This required changes in
the mustache templates and the python that generates the files.
(cherry picked from commit 80d042cb01
)
This commit is contained in:
committed by
Asterisk Development Team
parent
64ecad8309
commit
46bb9e8fde
@@ -332,6 +332,7 @@ class SwaggerType(Stringify):
|
||||
self.is_discriminator = None
|
||||
self.is_list = None
|
||||
self.singular_name = None
|
||||
self.lc_singular_name = None
|
||||
self.is_primitive = None
|
||||
self.is_binary = None
|
||||
|
||||
@@ -345,8 +346,10 @@ class SwaggerType(Stringify):
|
||||
self.is_list = type_param is not None
|
||||
if self.is_list:
|
||||
self.singular_name = type_param
|
||||
self.lc_singular_name = type_param.lower()
|
||||
else:
|
||||
self.singular_name = self.name
|
||||
self.lc_singular_name = self.name.lower()
|
||||
self.is_primitive = self.singular_name in SWAGGER_PRIMITIVES
|
||||
self.is_binary = (self.singular_name == 'binary')
|
||||
processor.process_type(self, context)
|
||||
|
Reference in New Issue
Block a user