Skip to content

Commit

Permalink
Ensure input structure is created in requests.
Browse files Browse the repository at this point in the history
Simplifies the ability to write Build request handler customizations.
  • Loading branch information
lsegal committed Apr 12, 2015
1 parent 8edf468 commit 5d7c12d
Show file tree
Hide file tree
Showing 42 changed files with 4,757 additions and 5 deletions.
4 changes: 4 additions & 0 deletions internal/model/api/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` +
}
}
if input == nil {
input = &{{ .InputRef.GoTypeElem }}{}
}
req = c.newRequest(op{{ .ExportedName }}, input, output)
output = &{{ .OutputRef.GoTypeElem }}{}
req.Data = output
Expand Down
Loading

0 comments on commit 5d7c12d

Please sign in to comment.