Added validation patterns to the "id" parameter in the Open APi specification in the library target to query parameters.
This commit is contained in:
@@ -254,36 +254,44 @@ components:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
Identifier:
|
Identifier:
|
||||||
description: The full 16-character hexadecimal identifier of an amiibo to include in the response.
|
description: The full 16-character hexadecimal identifier of an amiibo to include in the response, with an optional `0x` prefix. An empty value is rejected with a `400` response.
|
||||||
name: id
|
name: id
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
pattern: "^(0x)?[0-9a-fA-F]{16}$"
|
||||||
|
minLength: 16
|
||||||
maxLength: 18
|
maxLength: 18
|
||||||
IdentifierHead:
|
IdentifierHead:
|
||||||
description: The first 8 hexadecimal characters of an amiibo identifier to include in the response.
|
description: The first 8 hexadecimal characters of an amiibo identifier to include in the response, with an optional `0x` prefix. A shorter value matches as a prefix, while an empty value is rejected with a `400` response.
|
||||||
name: head
|
name: head
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
pattern: "^(0x)?[0-9a-fA-F]+$"
|
||||||
|
minLength: 1
|
||||||
maxLength: 10
|
maxLength: 10
|
||||||
IdentifierTail:
|
IdentifierTail:
|
||||||
description: The last 8 hexadecimal characters of an amiibo identifier to include in the response.
|
description: The last 8 hexadecimal characters of an amiibo identifier to include in the response, with an optional `0x` prefix. A shorter value matches as a prefix, while an empty value is rejected with a `400` response.
|
||||||
name: tail
|
name: tail
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
pattern: "^(0x)?[0-9a-fA-F]+$"
|
||||||
|
minLength: 1
|
||||||
maxLength: 10
|
maxLength: 10
|
||||||
Key:
|
Key:
|
||||||
description: A hexadecimal key to filter the results by.
|
description: A hexadecimal key to filter the results by, in the `0x`-prefixed format used by the `key` property of the resources. A value without hexadecimal digits after the prefix, or an empty value, is rejected with a `400` response.
|
||||||
name: key
|
name: key
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
pattern: "^0x[0-9a-fA-F]+$"
|
||||||
|
minLength: 3
|
||||||
Name:
|
Name:
|
||||||
description: A name to filter the results by.
|
description: A name to filter the results by.
|
||||||
name: name
|
name: name
|
||||||
|
|||||||
Reference in New Issue
Block a user