Bug Report Checklist
openapi-generator version
v4.2.2
OpenAPI declaration file content or url
See issue #4973
Command line used for generation
See issue #4973
Steps to reproduce
Generate the Dart code, and open any model files, where you expect enums, such as
openapi-test\lib\model\age_value.dart. There you see in the AgeValue class declaration:
//enum unitEnum { month, };{
Suggest a fix
Generated enums should not be commented, and should be automatically used for field value validation during assignment. They should also be usable to be able to assign only allowed values to a field during manual assignment.
Bug Report Checklist
openapi-generator version
v4.2.2
OpenAPI declaration file content or url
See issue #4973
Command line used for generation
See issue #4973
Steps to reproduce
Generate the Dart code, and open any model files, where you expect enums, such as
openapi-test\lib\model\age_value.dart. There you see in the AgeValue class declaration:
Suggest a fix
Generated enums should not be commented, and should be automatically used for field value validation during assignment. They should also be usable to be able to assign only allowed values to a field during manual assignment.