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"
|
||||
x-go-name: "WaitResponse"
|
||||
title: "ContainerWaitResponse"
|
||||
required: [StatusCode, Error]
|
||||
required: [StatusCode]
|
||||
properties:
|
||||
StatusCode:
|
||||
description: "Exit code of the container"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue