You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The generated definition now contains two operation ids with the same name ("Run"): […]
/api/test:
get:
tags:
- TestFunction
operationId: Run
consumes: []
produces: []
parameters: []
responses:
'200':
description: Success
post:
tags:
- TestFunction
operationId: Run
consumes: []
produces: []
parameters: []
responses:
'200':
description: Success
[…]
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
The text was updated successfully, but these errors were encountered:
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:
The generated definition now contains two operation ids with the same name ("Run"):
[…]
/api/test:
get:
tags:
- TestFunction
operationId: Run
consumes: []
produces: []
parameters: []
responses:
'200':
description: Success
post:
tags:
- TestFunction
operationId: Run
consumes: []
produces: []
parameters: []
responses:
'200':
description: Success
[…]
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
The text was updated successfully, but these errors were encountered: