Merge pull request #12178 from matejvasek/swagger-make-filed-optional

Update swagger doc make field optional
This commit is contained in:
OpenShift Merge Robot 2021-11-05 19:43:55 +01:00 committed by GitHub
commit e04cb6c30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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 {