1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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" type: "object"
x-go-name: "WaitResponse" x-go-name: "WaitResponse"
title: "ContainerWaitResponse" title: "ContainerWaitResponse"
required: [StatusCode, Error] required: [StatusCode]
properties: properties:
StatusCode: StatusCode:
description: "Exit code of the container" description: "Exit code of the container"

View file

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