mirror of https://github.com/docker/docs.git
Fix swagger validation errors
Signed-off-by: Nick Adcock <nick.adcock@docker.com>
This commit is contained in:
parent
67d5c72489
commit
86fe72f8ba
|
@ -24,16 +24,15 @@ definitions:
|
||||||
UsersLoginRequest:
|
UsersLoginRequest:
|
||||||
description: User login details
|
description: User login details
|
||||||
type: object
|
type: object
|
||||||
|
required: [username, password]
|
||||||
properties:
|
properties:
|
||||||
username:
|
username:
|
||||||
description: The username of the Docker Hub account to authenticate with
|
description: The username of the Docker Hub account to authenticate with
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example: myusername
|
example: myusername
|
||||||
password:
|
password:
|
||||||
description: The password of the Docker Hub account to authenticate with
|
description: The password of the Docker Hub account to authenticate with
|
||||||
type: string
|
type: string
|
||||||
required: true
|
|
||||||
example: hunter2
|
example: hunter2
|
||||||
PostUsersLoginSuccessResponse:
|
PostUsersLoginSuccessResponse:
|
||||||
description: successful user login response
|
description: successful user login response
|
||||||
|
@ -194,15 +193,14 @@ definitions:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
|
required: [repository, digest]
|
||||||
properties:
|
properties:
|
||||||
repository:
|
repository:
|
||||||
description: Name of repository to delete the image from
|
description: Name of repository to delete the image from
|
||||||
required: true
|
|
||||||
type: string
|
type: string
|
||||||
example: myrepo
|
example: myrepo
|
||||||
digest:
|
digest:
|
||||||
description: Digest of the image to delete
|
description: Digest of the image to delete
|
||||||
required: true
|
|
||||||
type: string
|
type: string
|
||||||
example: sha256:1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr
|
example: sha256:1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr
|
||||||
ignore_warnings:
|
ignore_warnings:
|
||||||
|
@ -219,20 +217,18 @@ definitions:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
|
required: [repository, digest, warning]
|
||||||
properties:
|
properties:
|
||||||
repository:
|
repository:
|
||||||
description: Name of the repository of the image to ignore the warning for
|
description: Name of the repository of the image to ignore the warning for
|
||||||
required: true
|
|
||||||
type: string
|
type: string
|
||||||
example: myrepo
|
example: myrepo
|
||||||
digest:
|
digest:
|
||||||
description: Digest of the image to ignore the warning for
|
description: Digest of the image to ignore the warning for
|
||||||
required: true
|
|
||||||
type: string
|
type: string
|
||||||
example: sha256:1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr
|
example: sha256:1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr
|
||||||
warning:
|
warning:
|
||||||
description: Warning to ignore
|
description: Warning to ignore
|
||||||
required: true
|
|
||||||
type: string
|
type: string
|
||||||
enum: [is_active, current_tag]
|
enum: [is_active, current_tag]
|
||||||
example: current_tag
|
example: current_tag
|
||||||
|
@ -356,7 +352,7 @@ paths:
|
||||||
The returned token is used in the HTTP Authentication header like `Authentication: JWT {TOKEN}`
|
The returned token is used in the HTTP Authentication header like `Authentication: JWT {TOKEN}`
|
||||||
|
|
||||||
Most Docker Hub APIs require this token either to consume or to get detailed information (e.g. listing images of the private repository).
|
Most Docker Hub APIs require this token either to consume or to get detailed information (e.g. listing images of the private repository).
|
||||||
consume:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
|
@ -404,7 +400,6 @@ paths:
|
||||||
|
|
||||||
Defaults to 1 month before the current time
|
Defaults to 1 month before the current time
|
||||||
type: string
|
type: string
|
||||||
example: '2020-12-01T12:00:00Z'
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: Success
|
description: Success
|
||||||
|
@ -459,7 +454,6 @@ paths:
|
||||||
|
|
||||||
Defaults to 1 month before the current time
|
Defaults to 1 month before the current time
|
||||||
type: string
|
type: string
|
||||||
example: '2020-12-01T12:00:00Z'
|
|
||||||
- name: page
|
- name: page
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
|
@ -497,7 +491,7 @@ paths:
|
||||||
Deleting a currently tagged image will delete the tag from the repository.
|
Deleting a currently tagged image will delete the tag from the repository.
|
||||||
|
|
||||||
Errors cannot be ignored. Children of multi-arch images cannot be directly deleted.
|
Errors cannot be ignored. Children of multi-arch images cannot be directly deleted.
|
||||||
consume:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
|
|
Loading…
Reference in New Issue