mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 11:06:31 +00:00
ari-stubs: Fix more local anchor references
Also allow CreateDocs job to be run manually with default branches.
(cherry picked from commit b68006f3a1
)
This commit is contained in:
committed by
Asterisk Development Team
parent
1108db21ef
commit
a0fc6c3ab0
@@ -5,14 +5,14 @@
|
||||
|:------ |:------------------------------------ |:------------ |:------- |
|
||||
{{#apis}}
|
||||
{{#operations}}
|
||||
| {{http_method}} | [{{wiki_path}}](#{{nickname}}) | {{#response_class}}{{#is_primitive}}{{name}}{{/is_primitive}}{{^is_primitive}}[{{wiki_name}}]({{wiki_prefix}}Asterisk_REST_Data_Models#{{lc_singular_name}}){{/is_primitive}}{{/response_class}} | {{{summary}}} |
|
||||
| {{http_method}} | [{{wiki_path}}](#{{nickname_lc}}) | {{#response_class}}{{#is_primitive}}{{name}}{{/is_primitive}}{{^is_primitive}}[{{wiki_name}}]({{wiki_prefix}}Asterisk_REST_Data_Models#{{lc_singular_name}}){{/is_primitive}}{{/response_class}} | {{{summary}}} |
|
||||
{{/operations}}
|
||||
{{/apis}}
|
||||
{{#apis}}
|
||||
{{#operations}}
|
||||
|
||||
---
|
||||
[//]: # (anchor:{{nickname}})
|
||||
[//]: # (anchor:{{nickname_lc}})
|
||||
## {{nickname}}
|
||||
### {{http_method}} {{wiki_path}}
|
||||
{{{wiki_summary}}}{{#wiki_notes}} {{{wiki_notes}}}{{/wiki_notes}}
|
||||
|
@@ -367,6 +367,7 @@ class Operation(Stringify):
|
||||
def __init__(self):
|
||||
self.http_method = None
|
||||
self.nickname = None
|
||||
self.nickname_lc = None
|
||||
self.response_class = None
|
||||
self.parameters = []
|
||||
self.summary = None
|
||||
@@ -378,6 +379,7 @@ class Operation(Stringify):
|
||||
validate_required_fields(op_json, self.required_fields, context)
|
||||
self.http_method = op_json.get('httpMethod')
|
||||
self.nickname = op_json.get('nickname')
|
||||
self.nickname_lc = self.nickname.lower()
|
||||
response_class = op_json.get('responseClass')
|
||||
self.response_class = response_class and SwaggerType().load(
|
||||
response_class, processor, context)
|
||||
|
Reference in New Issue
Block a user