From ff92d73712ad79f64dfb2a456710a1b4f851effb Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Thu, 4 Nov 2021 18:33:04 +0100 Subject: Update swagger doc make filed optional [NO TESTS NEEDED] Signed-off-by: Matej Vasek --- pkg/api/handlers/types.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/api/handlers/types.go b/pkg/api/handlers/types.go index c63cf8f0e..35120a1a5 100644 --- a/pkg/api/handlers/types.go +++ b/pkg/api/handlers/types.go @@ -44,7 +44,13 @@ type ContainersPruneReport struct { type LibpodContainersPruneReport struct { ID string `json:"Id"` SpaceReclaimed int64 `json:"Size"` - PruneError string `json:"Err,omitempty"` + // Error which occurred during prune operation (if any). + // This field is optional and may be omitted if no error occurred. + // + // Extensions: + // x-omitempty: true + // x-nullable: true + PruneError string `json:"Err,omitempty"` } type Info struct { -- cgit v1.2.3-54-g00ecf