-
Notifications
You must be signed in to change notification settings - Fork 216
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
Always serialize discriminator as the first property #4863
Comments
Hi @ahusseini |
Hey @baywet, that's understandable, although a bit strange to take this position when:
IMO this is unneeded friction, I just want to generate compliant code for minimal APIs. I've worked around this by creating an empty base class for all objects, so that $type is the first and only property. Anyways, I don't want to rehash the reordering thread so I'll close this. |
Is your feature request related to a problem? Please describe the problem.
related to:
Client library/SDK language
Csharp
Describe the solution you'd like
Kiota should not include the discriminator property when reordering alphabetically.
Additional context
Although this will be fixed in .net 9, this seems counter intuitive and breaking.
The text was updated successfully, but these errors were encountered: