From 7410c49ec22886cb626dbaa42704d2fff821f864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 22 Apr 2023 01:04:22 +0900 Subject: [PATCH 1/3] remove requred MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/schemas/tweet.yaml | 1 - src/openapi/schemas/tweet.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/dist/schemas/tweet.yaml b/dist/schemas/tweet.yaml index f1447b7..70163c7 100644 --- a/dist/schemas/tweet.yaml +++ b/dist/schemas/tweet.yaml @@ -57,7 +57,6 @@ components: - is_translatable - legacy - views - - quoted_status_result TweetLegacy: properties: bookmark_count: diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index dcfd810..f34c1ce 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -36,7 +36,6 @@ components: - "is_translatable" - "legacy" - "views" - - "quoted_status_result" properties: __typename: From 8b66a6a545a54c53529f5b6952e798650893f5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 22 Apr 2023 01:56:31 +0900 Subject: [PATCH 2/3] add user_results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/openapi/schemas/content.yaml | 2 ++ src/openapi/schemas/user.yaml | 10 +--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/openapi/schemas/content.yaml b/src/openapi/schemas/content.yaml index 04d5f09..3a89eda 100644 --- a/src/openapi/schemas/content.yaml +++ b/src/openapi/schemas/content.yaml @@ -167,6 +167,8 @@ components: $ref: "#/components/schemas/SocialContext" userDisplayType: type: string # enum + user_results: + $ref: "./user.yaml#/components/schemas/UserResults" ItemResult: required: diff --git a/src/openapi/schemas/user.yaml b/src/openapi/schemas/user.yaml index 16baead..81a4abf 100644 --- a/src/openapi/schemas/user.yaml +++ b/src/openapi/schemas/user.yaml @@ -17,15 +17,7 @@ components: - "result" properties: result: - $ref: "#/components/schemas/UserUnion" - - UserUnion: - oneOf: - - $ref: "#/components/schemas/User" - discriminator: - propertyName: __typename - mapping": # deprecated - User: "#/components/schemas/User" + $ref: "#/components/schemas/User" User: required: From fe0f51442070453513a204c3cd84d9006b0cb840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 22 Apr 2023 01:58:04 +0900 Subject: [PATCH 3/3] add user_results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/schemas/content.yaml | 2 ++ dist/schemas/user.yaml | 9 +-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/dist/schemas/content.yaml b/dist/schemas/content.yaml index f2d3622..9a90be4 100644 --- a/dist/schemas/content.yaml +++ b/dist/schemas/content.yaml @@ -166,6 +166,8 @@ components: type: string userDisplayType: type: string + user_results: + $ref: ./user.yaml#/components/schemas/UserResults required: - __typename - itemType diff --git a/dist/schemas/user.yaml b/dist/schemas/user.yaml index 2b50a11..fccfd97 100644 --- a/dist/schemas/user.yaml +++ b/dist/schemas/user.yaml @@ -197,16 +197,9 @@ components: UserResults: properties: result: - $ref: '#/components/schemas/UserUnion' + $ref: '#/components/schemas/User' required: - result - UserUnion: - discriminator: - mapping": - User: '#/components/schemas/User' - propertyName: __typename - oneOf: - - $ref: '#/components/schemas/User' info: title: Twitter OpenAPI version: 0.0.1