diff --git a/endpoints/api/discovery.py b/endpoints/api/discovery.py index 70a48664d..fd1a09f08 100644 --- a/endpoints/api/discovery.py +++ b/endpoints/api/discovery.py @@ -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({