aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-05 19:43:55 +0100
committerGitHub <noreply@github.com>2021-11-05 19:43:55 +0100
commite04cb6c30ca6c47afd61511c73e98af2a5fabf0b (patch)
treede781b73b6d002b100e11e9bc6292ce1c4d0a92c
parente826158b4b9c4baef41ca872dea5e68e089355d3 (diff)
parentff92d73712ad79f64dfb2a456710a1b4f851effb (diff)
downloadpodman-e04cb6c30ca6c47afd61511c73e98af2a5fabf0b.tar.gz
podman-e04cb6c30ca6c47afd61511c73e98af2a5fabf0b.tar.bz2
podman-e04cb6c30ca6c47afd61511c73e98af2a5fabf0b.zip
Merge pull request #12178 from matejvasek/swagger-make-filed-optional
Update swagger doc make field optional
-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 {