From 73ddf1bcebabd5038373cc14cc58ac4e6d819e85 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 31 Jan 2022 10:34:14 +0100 Subject: [PATCH] Adjust generated Types after recent fixes in openapi-generator for go --- graph/pkg/service/v0/drives.go | 2 +- graph/pkg/service/v0/errorcode/errorcode.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graph/pkg/service/v0/drives.go b/graph/pkg/service/v0/drives.go index 58933a6ea3..6dc308e388 100644 --- a/graph/pkg/service/v0/drives.go +++ b/graph/pkg/service/v0/drives.go @@ -360,7 +360,7 @@ func (g Graph) formatDrives(ctx context.Context, baseURL *url.URL, mds []*storag // TODO cache until ./.config/ocis/space.yaml file changes s = append(s, *sdi) } - res.Special = &s + res.Special = s } } // TODO this overwrites the quota that might already have been mapped in cs3StorageSpaceToDrive above ... move this into the cs3StorageSpaceToDrive method? diff --git a/graph/pkg/service/v0/errorcode/errorcode.go b/graph/pkg/service/v0/errorcode/errorcode.go index 0f540fa7ce..b39a700460 100644 --- a/graph/pkg/service/v0/errorcode/errorcode.go +++ b/graph/pkg/service/v0/errorcode/errorcode.go @@ -90,7 +90,7 @@ func (e ErrorCode) Render(w http.ResponseWriter, r *http.Request, status int, ms Error: libregraph.OdataErrorMain{ Code: e.String(), Message: msg, - Innererror: &innererror, + Innererror: innererror, }, } render.Status(r, status)