theoomoregbee / sails-hook-swagger-generator

A tool to help generate Swagger specification documentation based on OAS 3.0 for Sails APIs
MIT License
78 stars 33 forks source link

Improper routes handling #24

Closed atte-backman closed 6 years ago

atte-backman commented 6 years ago

When I'm having routes configured e.g.:

'get /user/:id/creditCards': {
    controller: 'user',
    action: 'get-or-create'
}

the generated json shows incorrectly

/user/{id/creditCards}

P.S. I'm using sailsjs 1.0

theoomoregbee commented 6 years ago

oh, will give this a try and possibly send a fix

alexschwarz89 commented 6 years ago

+1 for fixing this