Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response body type of List<Enum> #696

Open
MartynasZabulionis opened this issue Jul 18, 2024 · 0 comments
Open

Response body type of List<Enum> #696

MartynasZabulionis opened this issue Jul 18, 2024 · 0 comments

Comments

@MartynasZabulionis
Copy link
Contributor

Describe the bug
Erroneous code is generated for List<Enum> response data type. The parsed list item is of type String but it is casted as Map<String, dynamic> for Enum factory.

image

Expected behavior
The list item should be casted as String:

image

MartynasZabulionis added a commit to MartynasZabulionis/retrofit.dart that referenced this issue Jul 18, 2024
trevorwang pushed a commit that referenced this issue Aug 13, 2024
* fix: fix enum generation #663

* fix: fix enum generation #696
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant