mirror of https://github.com/docker/docs.git
Add length restrictions to token_label in API spec (#19421)
There are maximums enforced here that we document in API spec.
This commit is contained in:
parent
81b4a2d2a8
commit
d9781707e1
|
@ -1689,6 +1689,8 @@ components:
|
||||||
type: string
|
type: string
|
||||||
description: Friendly name for you to identify the token.
|
description: Friendly name for you to identify the token.
|
||||||
example: My read only token
|
example: My read only token
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 100
|
||||||
scopes:
|
scopes:
|
||||||
type: array
|
type: array
|
||||||
description: |
|
description: |
|
||||||
|
@ -1730,6 +1732,8 @@ components:
|
||||||
token_label:
|
token_label:
|
||||||
type: string
|
type: string
|
||||||
example: My read only token
|
example: My read only token
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 100
|
||||||
is_active:
|
is_active:
|
||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
|
|
Loading…
Reference in New Issue