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:
parent
2359da802b
commit
152467d185
2 changed files with 2 additions and 3 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue