T
TanStack•2y ago
graceful-blue

What framework is recommended for creating types schemas and hooks from OpenAPI 3.0/Swagger specs

I have unsuccesfully tried Kubb which promises exactly that.
5 Replies
absent-sapphire
absent-sapphire•2y ago
we have a lot of options in the community projects section: https://tanstack.com/query/v5/docs/framework/react/community/community-projects
Community Projects | TanStack Query React Docs
There are lots of community projects that build on top of React Query and use it to provide additional functionality or enhanced developer experience. Projects are listed in alphabetical order. If you have a project that you would like to add to this list, please open a PR! Please note that these projects are entirely community maintained. If y...
graceful-blue
graceful-blueOP•2y ago
Thank you! I was kind of looking for an opinion/experience though. But great to have the overview of possible paths anyway 🙂
absent-sapphire
absent-sapphire•2y ago
whenever I give my opinion people see this as an "official recommendation", so I'm refraining from those
graceful-blue
graceful-blueOP•2y ago
Oh, I respect that of course - with great power comes great responsibility (and lots of hazzle sometimes I guess) 😉 - so maybe I posted this in the wrong place? Or should I just wait for someone with experience with one or more of the frameworks to comment? I am trying out this now btw: https://github.com/7nohe/openapi-react-query-codegen
GitHub
GitHub - 7nohe/openapi-react-query-codegen: Node.js library that ge...
Node.js library that generates React Query (also called TanStack Query) hooks based on an OpenAPI specification file. - 7nohe/openapi-react-query-codegen
stormy-gold
stormy-gold•2w ago
What did you end up using and do you mind sharing your experience? I'm trying out https://openapi-ts.dev/openapi-react-query/ but it seems there is no easy built in way to get query keys for invalidating queries.
openapi-react-query | OpenAPI TypeScript
Consume OpenAPI 3.0 & 3.1 schemas in TypeScript

Did you find this page helpful?