yuka1984 / azure-functions-extensions-swashbuckle

MIT License
33 stars 29 forks source link

Invalid OperationIds Error #13

Closed stephanruhland closed 4 years ago

stephanruhland commented 5 years ago

Hi, i ran into an invalid swagger documentation with the following setup: Installed nuget in version 1.4.1 and specified multiple methods (get and post) in a http triggered function. I added a screenshot of the function: image

The generated definition now contains two operation ids with the same name ("Run"): _[…] /api/test: get: tags:

Swagger Online Validator Error Message: {"messages":["attribute paths.'/api/test'(get).operationId is repeated","attribute paths.'/api/test'(post).operationId is repeated"]}

Swagger Editor Error Message: Semantic error at paths./api/test.get.operationId Operations must have unique operationIds. Jump to line 28 Semantic error at paths./api/test.post.operationId Operations must have unique operationIds. Jump to line 38

Kind Regards

yuka1984 commented 5 years ago

Hi @stephanruhland . Thank you.