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.
1 parent 35a8739 commit bdc36f0Copy full SHA for bdc36f0
modules/swagger-codegen/src/main/resources/go/api.mustache
@@ -149,7 +149,7 @@ func (a *{{{classname}}}Service) {{{nickname}}}(ctx context.Context{{#hasParams}
149
{{#formParams}}
150
{{#isFile}}
151
var localVarFile {{dataType}}
152
-{^required}}
+{{^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