openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

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

Open C0retek opened this issue 3 years ago • 17 comments

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.

C0retek avatar Mar 03 '22 15:03 C0retek

thanks, looking forward to your contribution!

macjohnny avatar Mar 03 '22 15:03 macjohnny

Hi, I would like to work on this feature.

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

0bach0 avatar Mar 04 '22 01:03 0bach0

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

lukaswindisch avatar Apr 25 '22 11:04 lukaswindisch

I'd be interested in this too!

fellnerse avatar Jun 09 '22 09:06 fellnerse

Adding my +1

ghost avatar Jun 09 '22 09:06 ghost

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?

C0retek avatar Jun 10 '22 07:06 C0retek

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

michaeljauk avatar Sep 05 '22 17:09 michaeljauk

+1

lukaswindisch avatar Sep 06 '22 08:09 lukaswindisch

+1

nigue avatar Nov 28 '22 17:11 nigue

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

wing328 avatar Nov 28 '22 17:11 wing328

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

Very first commit on my branch here

0bach0 avatar Jan 09 '23 10:01 0bach0

@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 avatar Jan 09 '23 16:01 wing328

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

wing328 avatar Mar 15 '23 02:03 wing328

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:

  • KOA branch for TS support
  • And MR for NestJS ?

Cubid avatar May 24 '23 10:05 Cubid

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

excavador avatar Nov 07 '23 17:11 excavador

Do you have updates on this please ?

ejaoua avatar Feb 16 '24 17:02 ejaoua

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

samchon avatar Feb 16 '24 18:02 samchon