Merge pull request #5089 from baude/fixswaggeraddvalidate

fix swagger docs and make sure docs validation runs
This commit is contained in:
OpenShift Merge Robot 2020-02-05 23:28:41 +01:00 committed by GitHub
commit fa5e95837e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 40 deletions

View File

@ -683,9 +683,7 @@ docs_task:
# Only run this for PRs on mention, and after merge
only_if: >-
$CIRRUS_BRANCH == $DEST_BRANCH &&
$CIRRUS_CHANGE_MESSAGE !=~ '.*CI:IMG.*' &&
$CIRRUS_CHANGE_MESSAGE =~ '.*CI:DOCS.*'
$CIRRUS_BRANCH != $DEST_BRANCH
depends_on:
- "gating"

View File

@ -646,17 +646,16 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// name: message
// description: Set commit message for imported image
// type: string
// - in: body
// name: request
// - in: formData
// name: upload
// description: tarball of container image
// type: file
// required: true
// schema:
// type: string
// produces:
// - application/json
// responses:
// 200:
// $ref: "#/response/LibpodImagesLoadResponse"
// $ref: "#/responses/DocsLibpodImagesLoadResponse"
// 500:
// $ref: '#/responses/InternalError'
r.Handle(VersionedPath("/libpod/images/load"), APIHandler(s.Context, libpod.ImagesLoad)).Methods(http.MethodPost)
@ -665,7 +664,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// tags:
// - images
// summary: Import image
// description: Import a previosly exported tarball as an image.
// description: Import a previously exported tarball as an image.
// parameters:
// - in: query
// name: change
@ -678,18 +677,17 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// - in: query
// name: url
// description: Specify a URL instead of a tarball
// type: bool
// - in: body
// name: request
// description: Tarball of (or URL to) container image
// type: boolean
// - in: formData
// name: upload
// type: file
// required: true
// schema:
// type: string
// description: tarball for imported image
// produces:
// - application/json
// responses:
// 200:
// $ref: "#/response/LibpodImagesImportResponse"
// $ref: "#/responses/DocsLibpodImagesImportResponse"
// 500:
// $ref: '#/responses/InternalError'
r.Handle(VersionedPath("/libpod/images/import"), APIHandler(s.Context, libpod.ImagesImport)).Methods(http.MethodPost)
@ -711,13 +709,13 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// - in: query
// name: tls-verify
// description: Require TLS verification.
// type: bool
// type: boolean
// default: true
// produces:
// - application/json
// responses:
// 200:
// $ref: "#/response/LibpodImagesPullResponse"
// $ref: "#/responses/DocsLibpodImagesPullResponse"
// 500:
// $ref: '#/responses/InternalError'
r.Handle(VersionedPath("/libpod/images/pull"), APIHandler(s.Context, libpod.ImagesPull)).Methods(http.MethodPost)