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
The JSON attribute "[JsonConverter(typeof(StringEnumConverter))]" should be used on string Enomurators,
but should be omit in case of Integer Enomurators.
The text was updated successfully, but these errors were encountered:
Description
When generatin API client for C#. the code for Integer Enumerator produce have the same properties as if it was a String Enumerator.
openapi-generator version
4.2.0
OpenAPI declaration file content or url
Command line used for generation
java -jar openapi-generator-cli.jar generate -i my.yaml -g csharp
Steps to reproduce
Just run the command and compare JSON attribute of "enum ClassEnum" and "enum SizeEnum" at src/Org.OpenAPITools/Model/NewItem.cs
Related issues/PRs
Resamble but more simple then:
#3246
Suggest a fix
The JSON attribute "[JsonConverter(typeof(StringEnumConverter))]" should be used on string Enomurators,
but should be omit in case of Integer Enomurators.
The text was updated successfully, but these errors were encountered: