From 522f48e5a2af2be8aaa0fdfb509f0400f4720558 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 26 Jul 2026 10:19:24 +0200 Subject: [PATCH] Improved the validation rules at the OpenAPI specification in the library target. --- Sources/AmiiboService/openapi.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Sources/AmiiboService/openapi.yaml b/Sources/AmiiboService/openapi.yaml index 1992b91..1a7e3e1 100644 --- a/Sources/AmiiboService/openapi.yaml +++ b/Sources/AmiiboService/openapi.yaml @@ -35,7 +35,7 @@ info: * *You will require your end users to comply with (and not knowingly enable them to violate) applicable law, regulation, and the Terms.* * *You will comply with all applicable law, regulation, and third party rights (including without limitation laws regarding the import or export of data or software, privacy, and local laws). You will not use the APIs to encourage or promote illegal activity or violation of third party rights.* * *These Terms and Conditions are subject to change without notice, from time to time in our sole discretion.* - version: v1.0.0 + version: 1.0.0 termsOfService: https://www.amiiboapi.org/docs/#termscondition contact: name: FAQ @@ -372,9 +372,7 @@ components: The positions 0 to 7 of the hexadecimal string. type: string - pattern: "^[0-9a-fA-F]+$" - minLength: 8 - maxLength: 8 + pattern: "^[0-9a-fA-F]{8}$" image: description: A URL pointing to an image of this amiibo. type: string @@ -391,9 +389,7 @@ components: The positions 8 to 15 of the hexadecimal string. type: string - pattern: "^[0-9a-fA-F]+$" - minLength: 8 - maxLength: 8 + pattern: "^[0-9a-fA-F]{8}$" type: description: The type of this amiibo (e.g., Figure, Card, Yarn, Band). type: string