Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into ffddorf-issue-7311

# Conflicts:
#	modules/swagger-codegen/src/main/resources/go/api.mustache
  • Loading branch information
HugoMario committed Mar 25, 2020
2 parents 179bd2a + 0ab08a1 commit e88dc24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/swagger-codegen/src/main/resources/go/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,11 @@ func (a *{{{classname}}}Service) {{{nickname}}}(ctx context.Context{{#hasParams}
{{#hasFormParams}}
{{#formParams}}
{{#isFile}}
var localVarFile {{dataType}}
{{#required}}
localVarFile := {{paramName}}
{{/required}}
{{^required}}
var localVarFile {{dataType}}
if localVarOptionals != nil && localVarOptionals.{{vendorExtensions.x-exportParamName}}.IsSet() {
localVarFileOk := false
localVarFile, localVarFileOk = localVarOptionals.{{vendorExtensions.x-exportParamName}}.Value().({{dataType}})
Expand Down

0 comments on commit e88dc24

Please sign in to comment.