Open cptchloroplast opened 1 year ago
Hey @cptchloroplast can you further explain?
Currently, if you define a default in an endpoint, that default will be passed to the endpoint in the data
object
Here is an example of a query parameter with a default value
Query(Number, {
description: 'Limit the number of objects per search category.',
default: 3
})
I can define default values in the OpenAPI schema but it would be nice for the route to set them automatically.