File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
templates/cli/lib/type-generation/languages Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,15 +63,15 @@ import <%- toPascalCase(attribute.relatedCollection) %>
63
63
<% if (attribute.format === ' enum' ) { -%>
64
64
enum class <% - toPascalCase(attribute.key) %> {
65
65
<% for (const [index, element] of Object .entries(attribute.elements)) { -%>
66
- <% - strict ? toUpperSnakeCase(element) : element %><% - index < attribute.elements.length - 1 ? ' ,' : ' ' %>
66
+ <% - strict ? toUpperSnakeCase(element) : element %><% - index < attribute.elements.length - 1 ? ' ,' : ' ' %>
67
67
<% } -%>
68
68
}
69
69
70
70
<% } -%>
71
71
<% } -%>
72
72
data class <% - toPascalCase(collection.name) %> (
73
73
<% for (const [index, attribute] of Object .entries(collection.attributes)) { -%>
74
- val <% - strict ? toCamelCase(attribute.key) : attribute.key %> : <% - getType(attribute) %><% if (index < collection.attributes.length - 1 ) { %> ,<% } %>
74
+ val <% - strict ? toCamelCase(attribute.key) : attribute.key %> : <% - getType(attribute) %><% if (index < collection.attributes.length - 1 ) { %> ,<% } %>
75
75
<% } -%>
76
76
)`;
77
77
}
You can’t perform that action at this time.
0 commit comments