Merge pull request #37454 from thaJeztah/swagger-lint

Fix golint warning on generated "volume" types
This commit is contained in:
Yong Tang 2018-07-14 12:46:26 -07:00 committed by GitHub
commit 17dc10123f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -5922,7 +5922,7 @@ paths:
headers: headers:
X-Docker-Container-Path-Stat: X-Docker-Container-Path-Stat:
type: "string" type: "string"
description: "TODO" description: "A base64 - encoded JSON object with some filesystem header information about the path"
400: 400:
description: "Bad parameter" description: "Bad parameter"
schema: schema:
@ -7589,6 +7589,7 @@ paths:
schema: schema:
type: "object" type: "object"
title: "VolumeListResponse" title: "VolumeListResponse"
description: "Volume list response"
required: [Volumes, Warnings] required: [Volumes, Warnings]
properties: properties:
Volumes: Volumes:
@ -7665,6 +7666,8 @@ paths:
description: "Volume configuration" description: "Volume configuration"
schema: schema:
type: "object" type: "object"
description: "Volume configuration"
title: "VolumeConfig"
properties: properties:
Name: Name:
description: "The new volume's name. If not specified, Docker generates a name." description: "The new volume's name. If not specified, Docker generates a name."

View file

@ -7,7 +7,7 @@ package volume
// See hack/generate-swagger-api.sh // See hack/generate-swagger-api.sh
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// VolumeCreateBody // VolumeCreateBody Volume configuration
// swagger:model VolumeCreateBody // swagger:model VolumeCreateBody
type VolumeCreateBody struct { type VolumeCreateBody struct {

View file

@ -9,7 +9,7 @@ package volume
import "github.com/docker/docker/api/types" import "github.com/docker/docker/api/types"
// VolumeListOKBody // VolumeListOKBody Volume list response
// swagger:model VolumeListOKBody // swagger:model VolumeListOKBody
type VolumeListOKBody struct { type VolumeListOKBody struct {