Parsing the following spec produces invalid dart code.
The error is, that the class attribute package_ gets renamed to package but this one already exists.
The variable gets not renamed, or I have the option to specify how it will be renamed.
Logs
:::::::::::::::::::::::::::::::::::::::::::
:: Openapi generator for dart ::
:::::::::::::::::::::::::::::::::::::::::::
[INFO] openapi_generator on lib/src/common/openapi_clients.dart:Running following command to generate openapi client - [ generate -o=../generated/my_service/ -i=lib/src/common/openapi_specs/my_service.json -g=dart --additional-properties=allowUnicodeIdentifiers=false,ensureUniqueParams=true,useEnumExtension=true,prependFormOrBodyParameters=false,pubName=openapi_my_service,legacyDiscriminatorBehavior=true,sortModelPropertiesByRequiredFlag=true,sortParamsByRequiredFlag=true,wrapper=none ]
[INFO] openapi_generator on lib/src/common/openapi_clients.dart:Openapi generator completed successfully.
[INFO] openapi_generator on lib/src/common/openapi_clients.dart:Installing dependencies with generated source. flutter pub get
[INFO] openapi_generator on lib/src/common/openapi_clients.dart:Install completed successfully.
[INFO] openapi_generator on lib/src/common/openapi_clients.dart:Skipping source gen because generator does not need it.
[INFO] openapi_generator on lib/src/common/openapi_clients.dart:
Description of the bug
Parsing the following spec produces invalid dart code. The error is, that the class attribute
package_
gets renamed topackage
but this one already exists.Steps to reproduce
parse this file.
Expected behavior
The variable gets not renamed, or I have the option to specify how it will be renamed.
Logs