Skip to content

Commit

Permalink
Fix enum generation to preserve original enum values in output
Browse files Browse the repository at this point in the history
  • Loading branch information
mmvergara committed Dec 20, 2024
1 parent 329e163 commit b28e293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/lib/generators/standalone/enums.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ String generateEnums(Map<String, List<String>> mapOfEnums) {
final code = StringBuffer();
mapOfEnums.forEach((enumName, enumValues) {
code.write(
"enum ${enumName.split(".").last.toUpperCase().replaceAll('"', "")} { ${enumValues.map((e) => e.toLowerCase()).join(", ")} }\n");
"enum ${enumName.split(".").last.toUpperCase().replaceAll('"', "")} { ${enumValues.join(", ")} }\n");
});
return code.toString();
}

0 comments on commit b28e293

Please sign in to comment.