From d4cf5c3c9b8326f3e94fb784c50ce6932d5f81b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 27 May 2025 03:08:43 +0900 Subject: [PATCH] fix #93 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/openapi/response/error.yaml | 7 +++++-- src/openapi/schemas/instruction.yaml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/openapi/response/error.yaml b/src/openapi/response/error.yaml index b512f1f..a969acb 100644 --- a/src/openapi/response/error.yaml +++ b/src/openapi/response/error.yaml @@ -26,8 +26,11 @@ components: items: $ref: "#/components/schemas/Location" path: - type: list - items: {} #List[Union[str,int]] + type: array + items: + oneOf: + - type: string + - type: integer extensions: $ref: "#/components/schemas/ErrorExtensions" code: diff --git a/src/openapi/schemas/instruction.yaml b/src/openapi/schemas/instruction.yaml index d792bea..427109e 100644 --- a/src/openapi/schemas/instruction.yaml +++ b/src/openapi/schemas/instruction.yaml @@ -285,7 +285,7 @@ components: type: string enum: [TimelineCoverBehaviorDismiss, TimelineCoverBehaviorNavigate] url: - type: TimelineCoverBehaviorUrl + $ref: "#/components/schemas/TimelineCoverBehaviorUrl" TimelineCoverBehaviorUrl: required: