Don't expose unnamed API operations

fixes #861
This commit is contained in:
Matt Jibson 2015-11-16 15:40:33 -05:00
parent a2001afb1f
commit d5fb8cafd4

View file

@ -125,9 +125,11 @@ def swagger_route_data(include_internal=False, compact=False):
continue
operation_swagger = {
'operationId': method_metadata(method, 'nickname') or 'unnamed',
'operationId': method_metadata(method, 'nickname'),
'parameters': [],
}
if operation_swagger['operationId'] is None:
continue
if not compact:
operation_swagger.update({