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

Deno typescript OpenAPI generators #3174

Closed
anxiousmodernman opened this issue Jun 18, 2019 · 7 comments · Fixed by #6732
Closed

Deno typescript OpenAPI generators #3174

anxiousmodernman opened this issue Jun 18, 2019 · 7 comments · Fixed by #6732

Comments

@anxiousmodernman
Copy link

anxiousmodernman commented Jun 18, 2019

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.

@anxiousmodernman
Copy link
Author

Some issues re: fetch in Deno to watch
denoland/deno#2520
denoland/deno#2513
denoland/deno#2150

@anxiousmodernman anxiousmodernman changed the title Deno typescript generators Deno typescript OpenAPI generators Jun 18, 2019
@macjohnny
Copy link
Member

cc @TiFu
keep in mind #802

@TiFu
Copy link
Contributor

TiFu commented Jun 19, 2019

Thanks, will do, although I'm progressing very slowly - currently writing my master's thesis.

@macjohnny
Copy link
Member

@TiFu wish you all the best for your thesis!

@chibat
Copy link
Contributor

chibat commented Jun 21, 2020

I want to add deno to platforms of typescript(experimental).
May I create a Pull Request ?

@TiFu
Copy link
Contributor

TiFu commented Jun 21, 2020

@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.

@chibat
Copy link
Contributor

chibat commented Jun 21, 2020

@TiFu
Thanks!
I created the PR(#6732). I think you already know it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants