-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
I can generate Open API from contract, but can i generate contract from Open API? #270
Comments
Hi, I love the idea! Core team @oliverbutler probs will need to review but feel like this is a bit out of scope for the project currently due to the complexity. However, I had a quick mess around with a large language model giving the docs for context to convert between and it worked! hope this helps :) |
I would also love this feature. I am currently trying to choose between Zodios and ts-rest to improve the API integration story between a Laravel backend and a React frontend. Ts-reset looks a bit nicer in general, and has a better documentation, so I would prefer to use it. However, there is openapi-zod-client for Zodios, which would allow to fully automate the codegen for the API client. Seeing how Zodios and ts-reset are fundamentally very similar, perhaps it would best to try to contribute to openapi-zod-client to add an option of generating a schema for ts-reset instead of Zodios, instead of working on a completely new implementation? Perhaps this question is more relevant to ask over at openapi-zod-client repository, but since this issue already exists here, I wanted to check if this is something you think could be an option, or if there are some fundamental issues that would not make this possible? |
+1 |
+1 |
https://ts-rest.com/docs/open-api
The text was updated successfully, but these errors were encountered: