You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use the @tuyau/openapi package to create the API definition of my application, and although I am able to properly use the .openapi function in normal independent routes, I am facing some issues while using it in routes defined with .resource and .shallowResource.
It seems the parameters passed to actions are not being used during the generation, but the global ones are working fine.
The autocompletion seems to be working fine, so maybe there's some bug which is causing the action of each inner route of the resource to not be read during the generation.
Thanks for your time and for the awesome library, btw!
The text was updated successfully, but these errors were encountered:
Hi!
I was trying to use the
@tuyau/openapi
package to create the API definition of my application, and although I am able to properly use the.openapi
function in normal independent routes, I am facing some issues while using it in routes defined with.resource
and.shallowResource
.It seems the parameters passed to
actions
are not being used during the generation, but theglobal
ones are working fine.Some basic reproduction in
routes.ts
:This code is generating the definition like this:
The autocompletion seems to be working fine, so maybe there's some bug which is causing the action of each inner route of the resource to not be read during the generation.
Thanks for your time and for the awesome library, btw!
The text was updated successfully, but these errors were encountered: