diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-05 19:43:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 19:43:55 +0100 |
commit | e04cb6c30ca6c47afd61511c73e98af2a5fabf0b (patch) | |
tree | de781b73b6d002b100e11e9bc6292ce1c4d0a92c /pkg/api | |
parent | e826158b4b9c4baef41ca872dea5e68e089355d3 (diff) | |
parent | ff92d73712ad79f64dfb2a456710a1b4f851effb (diff) | |
download | podman-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
Diffstat (limited to 'pkg/api')
-rw-r--r-- | pkg/api/handlers/types.go | 8 |
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 { |