3 ms·
We used this to generate api functions for our react application and then discovered and switched to Orval. It generates react query functions instead of „norma
by thraizz 4y ago
We used this to generate api functions for our react application and then discovered and switched to Orval. It generates react query functions instead of „normal“ axios functions. Also it has support to generate a complete api mock with msw + faker.js - really nice.
- solarkraft 4y agoThis looks cool. Previously I was only aware of this blog post regarding React Query hooks from OpenAPI schemas: https://xata.io/blog/openapi-typesafe-react-query-hooks https://xata.io/blog/openapi-typesafe-react-query-hooks I take it that you’re happy with Orval. What are the biggest downsides?
- la55u 4y agoThe downside is it's pretty hard to maintain (the implementation is primitive string manipulation). Another cool tool I found is `rapini` but sadly it has no MSW support.