Closed AmitThakkar closed 2 years ago
Do they have different operationId properties?
Hello @scottie1984 ,
Thanks for your quick response and for looking into this. I looked at the swagger.json
file and noticed it I have duplicate operationId for each REST API also found an open issue at tsoa.
Thanks again for pointing this.
When we have nested routes e.g.
swagger-ui-express generate HTLM(
swaggerUi.generateHTML(swaggerJson)
) generates twodiv
with the same id(as shown in the below picture) in the same block.Whenever I click on
/users
post method it opens both the postdiv
blocks (/users
and/users/{id}/address
) and the same behaviour whenever I click on/users/{id}/addresss
.How can I separate both the routes(
/users
and/users/{id}/address
) so only one desired gets open.