From 0a92b399dffeacdffeeecdc7e6ad49c1ffe3881e Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 27 Apr 2023 14:40:53 +0200 Subject: [PATCH] swagger: fix Info name conflict go swagger has a flat namespace so it doesn't handle name conflicts at all. The libpod info response uses the Info struct from some docker dep instead. Because we cannot change the docker dependency simply rename the Info struct, but only via swagger comment not the go actual struct. I verified locally that this works. Fixes #18228 Signed-off-by: Paul Holzinger --- libpod/define/info.go | 1 + 1 file changed, 1 insertion(+) diff --git a/libpod/define/info.go b/libpod/define/info.go index 559006e9ba..6734638bbd 100644 --- a/libpod/define/info.go +++ b/libpod/define/info.go @@ -6,6 +6,7 @@ import ( // Info is the overall struct that describes the host system // running libpod/podman +// swagger:model LibpodInfo type Info struct { Host *HostInfo `json:"host"` Store *StoreInfo `json:"store"`