From 926b9c8c0d0a233dd8c33f29403dbbd9e1fb886e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 23 Nov 2024 23:48:27 +0900 Subject: [PATCH 1/4] fix schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/openapi/response/error.yaml | 5 ++--- src/openapi/schemas/user.yaml | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openapi/response/error.yaml b/src/openapi/response/error.yaml index 1b87159..b512f1f 100644 --- a/src/openapi/response/error.yaml +++ b/src/openapi/response/error.yaml @@ -26,9 +26,8 @@ components: items: $ref: "#/components/schemas/Location" path: - type: array - items: - type: string + type: list + items: {} #List[Union[str,int]] extensions: $ref: "#/components/schemas/ErrorExtensions" code: diff --git a/src/openapi/schemas/user.yaml b/src/openapi/schemas/user.yaml index 5358734..91c72f8 100644 --- a/src/openapi/schemas/user.yaml +++ b/src/openapi/schemas/user.yaml @@ -30,7 +30,6 @@ components: User: required: - "__typename" - - "affiliates_highlighted_label" - "id" - "is_blue_verified" - "legacy" @@ -210,6 +209,8 @@ components: type: string # uri bandcamp_handle: type: string # uri + pay_pal_handle: + type: string UserLegacyExtendedProfile: properties: From 4d4595d409b8755040e14edf3d9bf22673ae85cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 23 Nov 2024 23:49:19 +0900 Subject: [PATCH 2/4] fix https://github.com/fa0311/twitter_openapi_python/pull/36 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/openapi/schemas/user.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/src/openapi/schemas/user.yaml b/src/openapi/schemas/user.yaml index 91c72f8..2758669 100644 --- a/src/openapi/schemas/user.yaml +++ b/src/openapi/schemas/user.yaml @@ -221,7 +221,6 @@ components: required: - "day" - "month" - - "year" - "visibility" - "year_visibility" properties: From 3c3026bbf5ea497cf9c8838f4318b7549a452ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 23 Nov 2024 23:49:30 +0900 Subject: [PATCH 3/4] 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 | 8 ++++---- dist/docs/openapi-3.0.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 3efca98..639b8b0 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -828,9 +828,8 @@ components: name: type: string path: - items: - type: string - type: array + items: {} + type: list retry_after: type: integer source: @@ -2728,7 +2727,6 @@ components: $ref: '#/components/schemas/UserVerificationInfo' required: - __typename - - affiliates_highlighted_label - id - is_blue_verified - legacy @@ -3059,6 +3057,8 @@ components: type: boolean patreon_handle: type: string + pay_pal_handle: + type: string venmo_handle: type: string UserTweetsData: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 3078fba..0f9e5cb 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -828,9 +828,8 @@ components: name: type: string path: - items: - type: string - type: array + items: {} + type: list retry_after: type: integer source: @@ -2728,7 +2727,6 @@ components: $ref: '#/components/schemas/UserVerificationInfo' required: - __typename - - affiliates_highlighted_label - id - is_blue_verified - legacy @@ -3059,6 +3057,8 @@ components: type: boolean patreon_handle: type: string + pay_pal_handle: + type: string venmo_handle: type: string UserTweetsData: From d61d9d9021a078c8fd5d4c9c86138d3539289e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 23 Nov 2024 23:51:02 +0900 Subject: [PATCH 4/4] 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 | 1 - dist/docs/openapi-3.0.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 639b8b0..ef8d0b8 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -2934,7 +2934,6 @@ components: required: - day - month - - year - visibility - year_visibility UserMention: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 0f9e5cb..63996a2 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -2934,7 +2934,6 @@ components: required: - day - month - - year - visibility - year_visibility UserMention: