api: swagger: Adjust ContainerWaitResponse error as optional
@@ -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
@@ -4336,7 +4336,7 @@ definitions:
x-go-name: "ContainerWaitOKBody"
@@ -4461,7 +4461,7 @@ definitions:
@@ -4634,7 +4634,7 @@ definitions: