File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
templates/cli/lib/type-generation/languages Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ import '<%- attribute.relatedCollection.toLowerCase() %>.dart';
52
52
<% if (attribute.format === ' enum' ) { -%>
53
53
enum <% - toPascalCase(attribute.key) %> {
54
54
<% for (const element of attribute.elements) { -%>
55
- <% - element %> ,
55
+ <% - toSnakeCase( element) %> ,
56
56
<% } -%>
57
57
}
58
58
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ import <%- toPascalCase(attribute.relatedCollection) %>
54
54
<% if (attribute.format === ' enum' ) { -%>
55
55
enum class <% - toPascalCase(attribute.key) %> {
56
56
<% for (const [index, element] of Object .entries(attribute.elements)) { -%>
57
- <% - element %><% - index < attribute.elements.length - 1 ? ' ,' : ' ' %>
57
+ <% - toUpperSnakeCase( element) %><% - index < attribute.elements.length - 1 ? ' ,' : ' ' %>
58
58
<% } -%>
59
59
}
60
60
You can’t perform that action at this time.
0 commit comments