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
in the attached document there's both a GET and a PUT that use the path "/api/v1/subdomain/go/User/Detail". If the user clicks to expand or close the document then both GET and POST branches open/close together
To reproduce...
Steps to reproduce the behavior:
Import the doc into the Online Swagger Editor
Click on the path of the first item - /api/v1/subdomain/go/User/Detail
Observe that the top 2 items have both expanded together
Expected behavior
should only open the clicked item
Screenshots
none
Additional context or thoughts
The text was updated successfully, but these errors were encountered:
You're seeing this because your definition is invalid - both the GET and POST operations in question have the same operationId (TestAppGO_GetUseResponse), which is not allowed by the OpenAPI Specification:
operationId: Unique string used to identify the operation. The id MUST be unique among all operations described in the API.
Swagger Editor reports this as an error as well. You have some other fatal errors in your definition, you may want to load your definition into Swagger Editor and try to resolve them.
I do experience the same problem.
I found out the problem. Here it is:
Example with those 2 urls:
get /api/detailledTransactions/metadata
get /api/detailledTransactions/{id}
Will both result in the same id:
id="operations-DetailledTransaction-Get"
Compared to those 2 urls that will results in 2 differents Ids.
get /api/transactions -> id="operations-Transaction-Get"
get /api/transactions/{id}/source/objects -> id="operations-Transaction-GetSourceObjects"
This is simply to keep our issue tracker clean - feel free to comment if there are any further thoughts or concerns, and we'll be happy to reopen this issue.
Q&A (please complete the following information)
Content & configuration
testDoc.txt
Describe the bug you're encountering
in the attached document there's both a GET and a PUT that use the path "/api/v1/subdomain/go/User/Detail". If the user clicks to expand or close the document then both GET and POST branches open/close together
To reproduce...
Steps to reproduce the behavior:
Expected behavior
should only open the clicked item
Screenshots
none
Additional context or thoughts
The text was updated successfully, but these errors were encountered: