summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-11-04 18:33:04 +0100
committerMatej Vasek <mvasek@redhat.com>2021-11-04 18:43:34 +0100
commitff92d73712ad79f64dfb2a456710a1b4f851effb (patch)
tree2587ec05af5ba4cee7e35ac037d422146978b350 /pkg/api
parent82dba9754745f7598619050af4212a20b21821ad (diff)
downloadpodman-ff92d73712ad79f64dfb2a456710a1b4f851effb.tar.gz
podman-ff92d73712ad79f64dfb2a456710a1b4f851effb.tar.bz2
podman-ff92d73712ad79f64dfb2a456710a1b4f851effb.zip
Update swagger doc make filed optional
[NO TESTS NEEDED] Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/types.go8
1 files changed, 7 insertions, 1 deletions
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 {