Skip to content

Commit 5a1e7ac

Browse files
committed
refactor: map binary params to io.Reader in Go client
Override the openapi-generator Go default of *os.File for type: string + format: binary to io.Reader. *os.File still satisfies the interface, so existing callers compile unchanged.
1 parent feaa39c commit 5a1e7ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.woodpecker/build-go.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ steps:
3434
--git-repo-id=libre-graph-api-go
3535
-g go
3636
-o libre-graph-api-go
37-
--api-name-suffix Api'
37+
--api-name-suffix Api
38+
--type-mappings=binary=io.Reader,file=io.Reader,File=io.Reader'
3839
- cp LICENSE libre-graph-api-go/LICENSE
3940
diff:
4041
image: *alpine_image

0 commit comments

Comments
 (0)