From a61870f3857e8e6f6fc3a6ee2e0dfa0643dbc351 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 14 May 2026 11:01:48 +0200 Subject: [PATCH] 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. --- .woodpecker/build-go.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker/build-go.yaml b/.woodpecker/build-go.yaml index 2ce26b8..2fa52f1 100644 --- a/.woodpecker/build-go.yaml +++ b/.woodpecker/build-go.yaml @@ -34,7 +34,8 @@ steps: --git-repo-id=libre-graph-api-go -g go -o libre-graph-api-go - --api-name-suffix Api' + --api-name-suffix Api + --type-mappings=binary=io.Reader,file=io.Reader,File=io.Reader' - cp LICENSE libre-graph-api-go/LICENSE diff: image: *alpine_image