-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Deno typescript OpenAPI generators #3174
Comments
Some issues re: fetch in Deno to watch |
Thanks, will do, although I'm progressing very slowly - currently writing my master's thesis. |
@TiFu wish you all the best for your thesis! |
I want to add |
@chibat Of course! :) Do you already have an idea how you want to add deno? I would to try to keep deno's footprint in the code relatively low and avoid adding a ton of new edge cases for the platform. From a quick glance that should be possible. |
Description
Deno is a new TypeScript runtime built with V8 and Rust. Generating clients and servers from OpenAPI specifications would be a great feature.
The existing TypeScript fetch implementation should work for generating clients, with some modifications. I have done some research to this effect with the spec for Kubernetes. Some of the changes required to get the Deno code to build.
Deno strives for browser compatibility, so the fetch implementation is built in. But there are other networking capabilities being developed for Deno, such as
dialTLS
builtins. The fetch api is probably where authors of OpenAPI generators should focus first, however, as that API is well defined and is unlikely to change in big ways, I imagine.Generating server-side Deno is something that is feasible, but that API is more likely to change.
The text was updated successfully, but these errors were encountered: