api: swagger: adjust ContainerWaitResponse error as optional

Signed-off-by: Niel Drummond <niel@drummond.lu>
This commit is contained in:
Niel Drummond 2022-05-30 16:41:20 +01:00
parent 2359da802b
commit 152467d185
2 changed files with 2 additions and 3 deletions

View File

@ -4656,7 +4656,7 @@ definitions:
type: "object"
x-go-name: "WaitResponse"
title: "ContainerWaitResponse"
required: [StatusCode, Error]
required: [StatusCode]
properties:
StatusCode:
description: "Exit code of the container"

View File

@ -10,8 +10,7 @@ package container
type WaitResponse struct {
// error
// Required: true
Error *WaitExitError `json:"Error"`
Error *WaitExitError `json:"Error,omitempty"`
// Exit code of the container
// Required: true