Skip to content

Commit 65c1438

Browse files
CatTailfrantuma
authored andcommitted
suffix enum name with classname to avoid conflict
fix #7300
1 parent b06e545 commit 65c1438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/resources/go/model.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const (
1313
{{#enumVars}}
1414
{{^-first}}
1515
{{/-first}}
16-
{{name}} {{{classname}}} = "{{{value}}}"
16+
{{name}}_{{{classname}}} {{{classname}}} = "{{{value}}}"
1717
{{/enumVars}}
1818
{{/allowableValues}}
1919
){{/isEnum}}{{^isEnum}}{{#description}}

0 commit comments

Comments
 (0)