We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b599007 + cde3952 commit d1d5038Copy full SHA for d1d5038
modules/swagger-codegen/src/main/resources/go/api.mustache
@@ -148,8 +148,8 @@ func (a *{{{classname}}}Service) {{{nickname}}}(ctx context.Context{{#hasParams}
148
{{#hasFormParams}}
149
{{#formParams}}
150
{{#isFile}}
151
-{{^required}}
152
var localVarFile {{dataType}}
+{{^required}}
153
if localVarOptionals != nil && localVarOptionals.{{vendorExtensions.x-exportParamName}}.IsSet() {
154
localVarFileOk := false
155
localVarFile, localVarFileOk = localVarOptionals.{{vendorExtensions.x-exportParamName}}.Value().({{dataType}})
0 commit comments