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 generating Dart code from OpenAPI specifications, enum types are generated as class models instead of proper Dart enums. This makes the code less idiomatic and harder to use with Dart's pattern matching and switch expressions.
Steps to reproduce
Create an OpenAPI spec with an enum definition
Run the generator with Dart output
Check the generated files
Annotation used
I'm using CLI tool
Expected behavior
The generator should create proper Dart enums using the enum keyword for OpenAPI enum definitions.
Library version
6.0.0
Flutter version
3.24
Flutter channel
stable
The text was updated successfully, but these errors were encountered:
Description of the bug
When generating Dart code from OpenAPI specifications, enum types are generated as class models instead of proper Dart enums. This makes the code less idiomatic and harder to use with Dart's pattern matching and switch expressions.
Steps to reproduce
Annotation used
I'm using CLI tool
Expected behavior
The generator should create proper Dart enums using the
enum
keyword for OpenAPI enum definitions.Library version
6.0.0
Flutter version
3.24
Flutter channel
stable
The text was updated successfully, but these errors were encountered: