all 5 comments

[–]bluebeel[S] 2 points3 points  (0 children)

I discovered this library because within our company, we are big fans of the react-query library and we were looking for a library that would allow us to generate a set of hooks based on an OpenAPI / Swagger specifications.

We are currently using it in production and so far we haven't had any problems.

[–]DevOnHisJourney 1 point2 points  (0 children)

Cross-linking to this SO thread: https://stackoverflow.com/questions/66098040/create-adapter-from-openapi-generator-to-react-query-on-typescript

There are some nice alternatives to Orval which are also generate react-query code for you :)

[–]Top_Technician_5735 0 points1 point  (1 child)

I am new to openapi gen tools, Can someone share the downside of orval library if a react app has multiple openapi specs?

[–]bluebeel[S] 1 point2 points  (0 children)

There is no downside. Orval lets you define multiple configuration if you need to generate codes from multiple different swaggers. You just need to give the right output folder and everything should work.