Got this option for my route, when acessing the first param (page) it returns properly the value typed in from swagger ui when it access the second param (genre), it literraly interprets it as a string ‘{genre}’. any thoughts, pls?
app.get('/movies/:page/genres/:genre', (req,res) => {// route logic})
swagger options object
'/movies/{page}/genres/{genre}': {
get: {
security: [{
myAuth: []
}],
parameters: [
{
in: 'path',
name: "page",
required: true,
type: "string",
},
{
in: 'path',
name: "genre",
required: true,
type: "string",
},
],
I tried reading the swagger docs for getting the solution but it looks right to me.
New contributor
Guilherme G is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.