swagger-node
swagger-node copied to clipboard
Swagger node is taking URL phrase as parameter
Here's my one of GET requests:
GET: /students/{id}/{name}
(id is number)
And now I wrote another request:
GET: /students/routeInfo/{id}
But the 2nd request me following error:
Expected type is number, found type string. Which clearly means 2nd request is trying to "mask" 1st request. Which I think shouldn't be.
Taking "routeInfo" as a parameter value instead of path is absolutely weird.
Am I doing something wrong or is there any other way to handle this?
@vikaskumar2299 have you tried changing the order of the 2 routes? List
GET: /students/routeInfo/{id} before GET: /students/routeInfo/{id} in your swagger.yaml