The Swagger specification points out that you can set default values for parameters (https://swagger.io/docs/specification/describing-parameters/#default).
I tried adding some to my route definition, but it doesn't seem to do anything. Here's what mine looks like:
openapi.validPath({
// ...
parameters: [
{
in: 'query',
name: 'perPage',
schema: { type: 'integer', default: 24 },
},
],
// ...
})
Does the library support default values?
The Swagger specification points out that you can set default values for parameters (https://swagger.io/docs/specification/describing-parameters/#default).
I tried adding some to my route definition, but it doesn't seem to do anything. Here's what mine looks like:
Does the library support default values?