Skip to content

Commit 1553fd0

Browse files
committed
chore: use camel case of enums in dart
1 parent 9909be4 commit 1553fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/type-generation/languages/dart.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ import '<%- attribute.relatedCollection.toLowerCase() %>.dart';
9797
<% if (attribute.format === 'enum') { -%>
9898
enum <%- toPascalCase(attribute.key) %> {
9999
<% for (const [index, element] of Object.entries(attribute.elements)) { -%>
100-
<%- toSnakeCase(element) %><% if (index < attribute.elements.length - 1) { %>,<% } %>
100+
<%- toCamelCase(element) %><% if (index < attribute.elements.length - 1) { %>,<% } %>
101101
<% } -%>
102102
}
103103

0 commit comments

Comments
 (0)