You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WuZiHong
changed the title
[BUG] [Csharp] distriminator property in subclass generated incorrect in class construct function
[BUG] [Csharp] distriminator property in subclass generated incorrect in the class constructor
Nov 14, 2024
Interesting... when I changed the entity name from uppercase to lowercase (CopyActivity -> copyActivity, EntityBase -> entityBase), it generated the correct output.
Bug Report Checklist
Description
The openapi3 yaml content looks like:
When I try to use this to generate csharp code, the constructor in the generated subclass is incorrect. Like below:
In the red box, the expected value should be default(stringEnum) instead of a string, as it cannot be correctly assigned.
openapi-generator version
7.9.0
Steps to reproduce
openapi3 yaml file -> csharp model classes
Could you please help check and tell me what I might have done wrong? Or is that should be a bug?
The text was updated successfully, but these errors were encountered: