-
-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: OpenAPI generator for frontend #2715
Comments
Why not try GraphQL? |
Because it's a huge rewrite with no clear benefits, if it's done for both frontend and backend, or a level of not useful wrapper if we use it only on frontend. You're welcome to state your arguments and/or provide a POC. |
In my personal experience I find that OpenAPI doesn't have that great tools for generating clients, and I think this mainly comes down to people misunderstanding the OpenAPI specification (or not caring enough, maybe). AFAIK, GraphQL has better tooling at this point, not to mention better documentation. Another option might be to look at tRPC? The benefits for both options are end-to-end type-safe APIs. I appreciate that it's a large rewrite to change the transport layer, and it might not be worth it for what this issue wants to achieve. However, there are clear benefits with GraphQL, might not make sense right now. I'll leave you with that 👍 Let me know I can help! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Inconsistencies that we get by writing API integration by hand:
Things to take into consideration
anyOf
&oneOf
?Possible solutions
Dependencies that we can use (click to expand)
@openapitools/openapi-generator
fetch
APIorval
SWR
orReact-Query
hooksaxios
fetch
orgot
rapini
axios
@openapi-codegen
React-Query
+fetch
The text was updated successfully, but these errors were encountered: