swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

ASP.Net Core generate - .NET Core 3 / Swashbuckle 5 Support

Open knom opened this issue 7 years ago • 9 comments

Description Update ASPNET Core generator to support .NET Core 3.0

Swagger-codegen version 2.0 branch

Suggest a fix/enhancement Update ASPNET Core generator to support .NET Core 3.0

knom avatar Oct 14 '19 19:10 knom

.NET Core 2.2 end of support is December 23, 2019. It would be nice to have support for .NET Core 3.0 soon. Is there any update on this?

It would also be nice to have support for .NET Core 3 added to the 3.0.0 branch for OpenAPI version 3.

gfrung4 avatar Dec 04 '19 03:12 gfrung4

I agree.

christiandersen avatar Dec 11 '19 11:12 christiandersen

@frantuma please approve and merge!

knom avatar Dec 12 '19 06:12 knom

Hmm.. I really liked the project - and did a few contributions every now and then.. (especially in combination w. https://editor.swagger.io)

But the community has changed, @wing328 is gone it seems.. Not sure how active / alive the codegen still is.. looking at alternatives right now!

Trying https://github.com/OpenAPITools/openapi-generator..

knom avatar Dec 12 '19 07:12 knom

PR was merged and it's also been covered on v2 and v3, so closing this.

HugoMario avatar Apr 23 '20 23:04 HugoMario

@HugoMario - do you have a link to a v3 issue or pull request related to @knom's request? I work on the .NET team at Microsoft and would very much like to see an ASP.NET Core 3.1 server stub generator created. I'd be willing to submit a pull request to make it happen - is there any other ongoing work in this space, or is there a pre-existing 3.1 generator in the works?

Thanks in advance. Trust me - there is still very much interest in the OAS/Swagger opportunities for ASP.NET Core developers, and I'd be willing to work with the group to make this happen if we could get a little support in authoring the generators.

bradygaster avatar Apr 29 '20 23:04 bradygaster

Hi @bradygaster, this PR https://github.com/swagger-api/swagger-codegen-generators/pull/642 is related to knom request for v3, it currently generates a aspnetcore version 3.0. Version 3.1 is in our path but with no ETA yet. So yea, it's pretty awesome receive any help to accomplish that.

Please, ping me if you need help with something.

HugoMario avatar Apr 30 '20 01:04 HugoMario

@HugoMario - I submitted a PR last night to make a slight improvement - #10216 - which repairs one small bug I saw in the 3.0 template. I'm going to start working on the 3.1 update ASAP, so if anyone has tips on how to best submit a PR, feedback/guidance is welcome.

bradygaster avatar Apr 30 '20 15:04 bradygaster

@bradygaster, here is a guide that you can use https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md.

if you have any doubt or need help to merge PR, please dont hesitate to ping me

HugoMario avatar May 01 '20 10:05 HugoMario