-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
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?
friedPotat0, devthejo and ZoneMR
Metadata
Metadata
Assignees
Labels
No labels