forked from loafle/openapi-generator-original
Properly capitalize exported go types (#7636)
Previously if the type was "myEnum" it would be written as ``` type myEnum string const ( DEMO MyEnum = "DEMO" ) ``` which would fail because of the capitalization difference. This fixes that.
This commit is contained in:
parent
39fa375e3a
commit
47614bb765
@ -5,7 +5,7 @@ import ({{/imports}}{{#imports}}
|
|||||||
"{{import}}"{{/imports}}{{#imports}}
|
"{{import}}"{{/imports}}{{#imports}}
|
||||||
)
|
)
|
||||||
{{/imports}}{{#model}}{{#isEnum}}{{#description}}// {{{classname}}} : {{{description}}}{{/description}}
|
{{/imports}}{{#model}}{{#isEnum}}{{#description}}// {{{classname}}} : {{{description}}}{{/description}}
|
||||||
type {{{name}}} {{^format}}{{dataType}}{{/format}}{{#format}}{{{format}}}{{/format}}
|
type {{{classname}}} {{^format}}{{dataType}}{{/format}}{{#format}}{{{format}}}{{/format}}
|
||||||
|
|
||||||
// List of {{{name}}}
|
// List of {{{name}}}
|
||||||
const (
|
const (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user