-
Notifications
You must be signed in to change notification settings - Fork 234
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
Make the model classes partial in C# #4894
Comments
Hi @vvdb-architecture This gets written here
And tested there kiota/tests/Kiota.Builder.Tests/Writers/CSharp/CodeClassDeclarationWriterTests.cs Line 54 in 0254c19
Is this something you'd be willing to submit a pull request for? |
Is your feature request related to a problem? Please describe the problem.
In other code generators (did anyone say NSwag?) , the generated model classes are partial. This can be very handy to add some computed properties as part of the API, without forcing users to define wrapper classes.
It may not be applicable to other languages not having the partial class concept, but it surely would help those who use C#.
Client library/SDK language
Csharp
Describe the solution you'd like
generate
public partial class
instead ofpublic class
when generating model code.Additional context
No response
The text was updated successfully, but these errors were encountered: