Several fixes and optimizations all over the library #28

Merged
javier merged 22 commits from library/several-fixes-and-optimizations into main 2026-07-26 09:56:33 +00:00
Showing only changes of commit da7202b8a4 - Show all commits
+12 -4
View File
@@ -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