OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.43k stars 6.48k forks source link

[REQ] Add NestJS Server Code Generator to Openapi-Generator #11785

Open C0retek opened 2 years ago

C0retek commented 2 years ago

Is your feature request related to a problem? Please describe.

There is already a NestJS Client Code Generator in the OpenAPITools Repo but there is no Server Generator currently that would make it easy to have OpenAPI definitions used to generate NestJS Server Code

Describe the solution you'd like

NestJS Server Code Generator Contributed to OpenAPITools

Describe alternatives you've considered

Opened request on NestJS Git here

Additional context

Supporting NestJS Server Code Generation would make it easy for users of NestJS to build projects with "design first" approach using OpenAPITools Code Generator and not "just" use it to document their API.

macjohnny commented 2 years ago

thanks, looking forward to your contribution!

0bach0 commented 2 years ago

Hi, I would like to work on this feature.

@C0retek are you intersted in spend time in the development of the NestJs Codegen?

lukaswindisch commented 2 years ago

Are there any news about this feature request? Would be really helpful to have something like this.

fellnerse commented 2 years ago

I'd be interested in this too!

ghost commented 2 years ago

Adding my +1

C0retek commented 2 years ago

Hi, I would like to work on this feature.

@C0retek are you intersted in spend time in the development of the NestJs Codegen?

Hi @fellnerse : I do unfortunately not have time but we could pool resources, if someone is interested. Maybe we have a Senior NestJS who's willing to developpe it for compensation?

michaeljauk commented 2 years ago

Adding my +1, would be really cool to have something like this

lukaswindisch commented 2 years ago

+1

nigue commented 1 year ago

+1

wing328 commented 1 year ago

If anyone would like to work on or sponsor this task, please reply to let us know.

0bach0 commented 1 year ago

hi @wing328, would like to work on this generator; might ask your guidance later.

Very first commit on my branch here

wing328 commented 1 year ago

@bachmystoriesvn I've also started something. Can you please PM me via Slack when you've time? Thanks.

https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g

wing328 commented 1 year ago

UPDATE: I've filed https://github.com/openapitools/openapi-generator/tree/ts-koa2-server as a starting point (it's far from perfect)

Cubid commented 1 year ago

UPDATE: I've filed https://github.com/openapitools/openapi-generator/tree/ts-koa2-server as a starting point (it's far from perfect)

Hello @wing328, @0bach0, To sum up, we have 2 branches to start with NestJS:

excavador commented 10 months ago

Do you have any updates? This is highly wanted by us feature

ejaoua commented 7 months ago

Do you have updates on this please ?

samchon commented 7 months ago

Do you have updates on this please ?

image

https://nestia.io/docs/migrate/

https://nestia.io/docs/editor

Try the command if your OpenAPI version is 3.0

npm install -g @nestia/migrate
npx @nestia/migrate