Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid OperationIds Error #13

Closed
stephanruhland opened this issue Sep 30, 2019 · 1 comment
Closed

Invalid OperationIds Error #13

stephanruhland opened this issue Sep 30, 2019 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@stephanruhland
Copy link

stephanruhland commented Sep 30, 2019

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:
- 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

@yuka1984 yuka1984 self-assigned this Oct 8, 2019
@yuka1984 yuka1984 added the bug Something isn't working label Oct 8, 2019
@yuka1984
Copy link
Owner

yuka1984 commented Oct 8, 2019

Hi @stephanruhland .
Thank you.

yuka1984 pushed a commit that referenced this issue Dec 14, 2019
@yuka1984 yuka1984 added this to the ver 1.4.4 milestone Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants