-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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] Will the 5.0 final release include a server-stub generator for C# .NET 5? #8017
Comments
We want to make the aspnetcore generator compatible with .NET 5
Is that something you can help with? I can show you some good starting points to begin with. |
Hi William. I was hoping someone else had already done the work. Sorry, I cannot commit; however, if I decide to create a custom template for my own project, I’ll consider contributing that solution. My priority is my current project. |
No problem. Let's wait to see if someone from the community has the time to make the contributions. Of course, you're welcome to sponsor the enhancement to make it a higher priority :) |
Noted. Thanks William.
:-)
FYI: We’ve decided to start by creating a custom solution (per https://openapi-generator.tech/docs/customization/). Once we have that working, we can decide whether to contribute to the OpenAPI Generator project.
...Ken
From: William Cheng [mailto:[email protected]]
Sent: Thursday, November 26, 2020 5:12 AM
To: OpenAPITools/openapi-generator
Cc: Ken Collins; Author
Subject: Re: [OpenAPITools/openapi-generator] [REQ] Will the 5.0 final release include a server-stub generator for C# .NET 5? (#8017)
No problem. Let's wait to see if someone from the community has the time to make the contributions.
Of course, you're welcome to sponsor the enhancement to make it a higher priority :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#8017 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR4FIBYD23ABKKADV43YIT3SRYSYJANCNFSM4UBRSSLQ>.
|
@KenCollins-Skkynet |
Yes...I recently figured that out. Thank you!
...Ken
From: sunn [mailto:[email protected]]
Sent: Sunday, December 13, 2020 5:40 AM
To: OpenAPITools/openapi-generator
Cc: Ken Collins; Mention
Subject: Re: [OpenAPITools/openapi-generator] [REQ] Will the 5.0 final release include a server-stub generator for C# .NET 5? (#8017)
@KenCollins-Skkynet<https://github.com/KenCollins-Skkynet>
To make it work with .NET 5 you have to select the framework version. Default .NET Core framework in the tool is 2.1 which is not compatible with .NET 5.
--additional-properties targetFramework=netcoreapp3.0
.NET Core 3.1 is compatible with .NET 5
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#8017 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AR4FIB7VGS6QEKYSSVE6GLTSUSKYZANCNFSM4UBRSSLQ>.
|
The current 'aspnetcore' generator is not compatible with .NET 5. Specifically, the definition of the Filter 'Apply' method now expects an OpenApiDocument instead of a SwaggerDocument. I'm sure there are other improvements that can be added. Nonetheless, it would be nice to have a C# ASP.NET Core .NET 5 server-stub generator. Of course, I know I can create a custom template, but I'd rather not go down that path if something is already in work. Thanks.
The text was updated successfully, but these errors were encountered: