Only operations with nicknames can be added to the swagger doc
This commit is contained in:
parent
77346ad047
commit
dd4c26cb00
1 changed files with 5 additions and 1 deletions
|
@ -125,7 +125,11 @@ def swagger_route_data(include_internal=False, compact=False):
|
||||||
new_operation['requires_fresh_login'] = True
|
new_operation['requires_fresh_login'] = True
|
||||||
|
|
||||||
if not internal or (internal and include_internal):
|
if not internal or (internal and include_internal):
|
||||||
operations.append(new_operation)
|
# Swagger requires valid nicknames on all operations.
|
||||||
|
if new_operation.get('nickname'):
|
||||||
|
operations.append(new_operation)
|
||||||
|
else:
|
||||||
|
logger.debug('Operation missing nickname: %s' % method)
|
||||||
|
|
||||||
swagger_path = PARAM_REGEX.sub(r'{\2}', rule.rule)
|
swagger_path = PARAM_REGEX.sub(r'{\2}', rule.rule)
|
||||||
new_resource = {
|
new_resource = {
|
||||||
|
|
Reference in a new issue