-
-
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
[REQ] Support TypeScript Server generation #4183
Comments
|
sounds like a good idea. would you be willing to contribute such a generator? |
Similar request: #3011 @HiromiShikata is that what you'd in mind as well? |
Of course I want to contribute, I want to use this generator in other projects (not only current project) in the future, so the new generator is good for me. |
@HiromiShikata I've produced a typescript generator in a closed source repo. My approach was to extend For example, I made one for the HAPI node server: I didn't feel like any functionality was missing from this approach other than using an in-corrrect tag as you've mentioned. I like your approach here. If you'd like me to contribute the changes you outlined let me know. Otherwise I'll leave it to you. When we have this core functionality inplace I can port my HapiServer generator to the open source community and start working on one for NestJs next What do you think? Do you want to make a PR or would you rather me take over? I'm fine either way |
I've created https://github.com/OpenAPITools/openapi-generator/tree/ts_server with a new TypeScriptServerCodegen as a starting point: https://github.com/OpenAPITools/openapi-generator/compare/ts_server?expand=1 Please feel free to submit PRs for this branch or submit a PR based on what you've created so far. |
Hi. I'm interested in this. What's the current status? If anyone isn't working on this actively, can I take over this? |
Any updates? How can I use the |
@Kiikurage please go ahead as I don't think anyone is actively working on it at the moment. If you need help, please PM me via Slack (https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM) |
I'm sorry I haven't replied for a long time 🙇 |
Is your feature request related to a problem? Please describe.
I want to make a server generator of Node using typescript with koa.js.
There is a very nice useful class AbstructTypeScriptClientCodegen for clients, but not for servers.
Describe the solution you'd like
AbstructTypeScriptClientCodegen
toAbstructTypeScriptCodegen
, and removegetTag()
from thisAbstructTypeScriptClientCodegen
again, addgetTag()
to this.AbstructTypeScriptServerCodegen
, addgetTag()
to this.Provably this is a minimal impact and maintainable solution because there are some client generators.
(And we need to change
TypeScriptNodeClientCodegen
to extendsAbstractTypeScriptServerCodegen
fromAbstractTypeScriptClientCodegen
maybe.)Describe alternatives you've considered
Have only
AbstractTypeScriptCodegen
getTag()
to all typescript client generators.Copy
AbstractTypeScriptServerCodegen
fromAbstructTypeScriptClientCodegen
.Create
AbstractTypeScriptServerCodegen
that extendsAbstructTypeScriptClientCodegen
.AbstractTypeScriptClientCodegen
, it may occur probrem in server.Additional context
TypeScript is used by clients and servers. But other Languages also can have servers and clients.
I would be happy to discuss the good balance of abstraction in this nice project.
The text was updated successfully, but these errors were encountered: