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
When using the aspnetcore generator to generate an enumeration I get [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] and a reqpective using.
After I set useNewtonsoft: false in a config yml file I would expect the JsonConverter attribute and using to not be generated but still getting the attribute and using in my generated code.
openapi-generator version
v6.0.1 via Docker
OpenAPI declaration file content or url
Generation Details
Powershell script to run the generator in docker: docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v6.0.1 generate -i /local/openapi.yml -o /local/out/aspnetcore -g aspnetcore -c /local/aspnetcoreConfig.yml
Description
When using the
aspnetcore
generator to generate an enumeration I get[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
and a reqpectiveusing
.After I set
useNewtonsoft: false
in a config yml file I would expect theJsonConverter
attribute andusing
to not be generated but still getting the attribute and using in my generated code.openapi-generator version
v6.0.1 via Docker
OpenAPI declaration file content or url
Generation Details
Powershell script to run the generator in docker:
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v6.0.1 generate -i /local/openapi.yml -o /local/out/aspnetcore -g aspnetcore -c /local/aspnetcoreConfig.yml
openapi.yml:
aspnetcoreConfig.yml:
Steps to reproduce
Run the generator and have a look at the generated
ExampleEnum.cs
file.Related issues/PRs
none found
Suggest a fix
No idea other then the expected outcome. Don't know if this is a real bug or some sort of "feature".
The text was updated successfully, but these errors were encountered: