Hacker News new | ask | show | jobs
by thraizz 1340 days 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.
1 comments

This 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

I take it that you’re happy with Orval. What are the biggest downsides?

The 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.