Skip to content
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

Open
gustawdaniel opened this issue Jun 6, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@gustawdaniel
Copy link

https://ts-rest.com/docs/open-api

@Jwcode-uk
Copy link
Contributor

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 :)

@Tomaszal
Copy link

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?

@aerocov
Copy link

aerocov commented Jul 14, 2023

+1

@michaelangeloio michaelangeloio added the enhancement New feature or request label Sep 4, 2023
@Carminepo2
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants