Open tddschn opened 10 months ago
Hey @tddschn you can pass all supported openapi properties inside the schema
property of the router, here's an example for defining servers:
const router = OpenAPIRouter({
schema: {
servers: [{
url: 'https://api.example.com/v1',
description: 'example',
}],
},
})
https://cloudflare.github.io/itty-router-openapi/user-guide/router-options/
I thought
OpenAPIRouter
supports specifying the server URL so that the generatedopenapi.json
will have the server URL info, but I can't find the option in the doc linked above. Is this feature supported?