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 1/3] 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: From 100e56ad733d31cecf0f12e91dd2023b2be13376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 27 May 2025 03:18:56 +0900 Subject: [PATCH 2/3] add NonMember MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/openapi/schemas/tweet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 8d2e341..5270dbd 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -438,7 +438,7 @@ components: $ref: "#/components/schemas/Community" role: type: string - enum: [Member, Moderator, Admin] + enum: [Member, Moderator, Admin, NonMember] user_results: $ref: "user.yaml#/components/schemas/UserResults" From f1c7936bec3a637015f74f9c3d546b336a790b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 27 May 2025 03:21:08 +0900 Subject: [PATCH 3/3] build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 10 +++++++--- dist/docs/openapi-3.0.yaml | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 012bd87..2daecda 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -180,6 +180,7 @@ components: - Member - Moderator - Admin + - NonMember type: string user_results: $ref: '#/components/schemas/UserResults' @@ -875,8 +876,11 @@ components: name: type: string path: - items: {} - type: list + items: + oneOf: + - type: string + - type: integer + type: array retry_after: type: integer source: @@ -1962,7 +1966,7 @@ components: - TimelineCoverBehaviorNavigate type: string url: - type: TimelineCoverBehaviorUrl + $ref: '#/components/schemas/TimelineCoverBehaviorUrl' required: - type TimelineCoverBehaviorUrl: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index aad3248..5e4f820 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -180,6 +180,7 @@ components: - Member - Moderator - Admin + - NonMember type: string user_results: $ref: '#/components/schemas/UserResults' @@ -875,8 +876,11 @@ components: name: type: string path: - items: {} - type: list + items: + oneOf: + - type: string + - type: integer + type: array retry_after: type: integer source: @@ -1962,7 +1966,7 @@ components: - TimelineCoverBehaviorNavigate type: string url: - type: TimelineCoverBehaviorUrl + $ref: '#/components/schemas/TimelineCoverBehaviorUrl' required: - type TimelineCoverBehaviorUrl: