Closed ghost closed 1 year ago
Same as #30
Have tried setting up nested router (as I often do in itty-router) and while this works, I still see "No operations defined in spec!" when viewing /docs.
itty-router
/docs
I've tested this on both my own projects and with the tasks example from Cloudflare Workers SDK which is at https://github.com/jasiqli/tasks-openapi-issue
Related to this, the example 7. Nested Routers shows
router.all('/api/v1/attacks/*', attacksRouter)
however I find this generates a "c is not function" error and the only way it will work (as with itty-router) is
router.all('/api/v1/attacks/*', attacksRouter.handle)
Hey @jasiqli i've cloned your https://github.com/jasiqli/tasks-openapi-issue, and solved the issue by upgrading to the latest version of itty-router-openapi
Thanks @G4brym. Seems to work a treat 🎉
Same as #30
Have tried setting up nested router (as I often do in
itty-router
) and while this works, I still see "No operations defined in spec!" when viewing/docs
.I've tested this on both my own projects and with the tasks example from Cloudflare Workers SDK which is at https://github.com/jasiqli/tasks-openapi-issue
Related to this, the example 7. Nested Routers shows
however I find this generates a "c is not function" error and the only way it will work (as with
itty-router
) is