From dcd0db54d7e1ccb11558aabf445902bd76709c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 20 Sep 2023 12:07:11 +0900 Subject: [PATCH 1/3] remove required ext_media_availability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- .vscode/launch.json | 8 ++++++++ dist/compatible/openapi-3.0.yaml | 7 +++---- dist/docs/openapi-3.0.yaml | 7 +++---- src/openapi/schemas/general.yaml | 4 ++-- src/openapi/schemas/tweet.yaml | 2 +- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 0667611..7b7bf00 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,14 @@ { "version": "0.2.0", "configurations": [ + { + "name": "Python: 現在のファイル", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": false + }, { "name": "build", "type": "python", diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 7a832b5..8edbae0 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -575,7 +575,6 @@ components: - media_url_https - type - url - - ext_media_availability - sizes - original_info MediaOriginalInfo: @@ -1454,9 +1453,9 @@ components: - tweet TwitterTimeFormat: example: Sat Dec 31 23:59:59 +0000 2023 - pattern: ^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) - (0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]) - ([+-][0-9]{4}) ([0-9]{4})$ + pattern: '^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) + (0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3])(: ?)([0-5][0-9])(: ?)([0-5][0-9]) + ([+-][0-9]{4}) ([0-9]{4})$' type: string TypeName: enum: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index ccc6485..97354d0 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -575,7 +575,6 @@ components: - media_url_https - type - url - - ext_media_availability - sizes - original_info MediaOriginalInfo: @@ -1454,9 +1453,9 @@ components: - tweet TwitterTimeFormat: example: Sat Dec 31 23:59:59 +0000 2023 - pattern: ^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) - (0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]) - ([+-][0-9]{4}) ([0-9]{4})$ + pattern: '^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) + (0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3])(: ?)([0-5][0-9])(: ?)([0-5][0-9]) + ([+-][0-9]{4}) ([0-9]{4})$' type: string TypeName: enum: diff --git a/src/openapi/schemas/general.yaml b/src/openapi/schemas/general.yaml index fd60f6d..8d9edaf 100644 --- a/src/openapi/schemas/general.yaml +++ b/src/openapi/schemas/general.yaml @@ -8,5 +8,5 @@ components: schemas: TwitterTimeFormat: type: string - pattern: "^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]) ([+-][0-9]{4}) ([0-9]{4})$" - example: "Sat Dec 31 23:59:59 +0000 2023" + pattern: "^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3])(: ?)([0-5][0-9])(: ?)([0-5][0-9]) ([+-][0-9]{4}) ([0-9]{4})$" + example: "Sat Dec 31 23:59:59 +0000 2023" # Wed Sep 20 02: 55: 44 +0000 2023 diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 5ae992f..12916cc 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -378,7 +378,7 @@ components: - "media_url_https" - "type" - "url" - - "ext_media_availability" + # - "ext_media_availability" # - "features" - "sizes" - "original_info" From 1ffbf46ef3c14ee8f41c5ca9d0779af1ec3cfafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 20 Sep 2023 12:10:42 +0900 Subject: [PATCH 2/3] remove required result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/openapi/schemas/user.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/openapi/schemas/user.yaml b/src/openapi/schemas/user.yaml index 9a94fab..0e48b57 100644 --- a/src/openapi/schemas/user.yaml +++ b/src/openapi/schemas/user.yaml @@ -13,8 +13,6 @@ components: $ref: "#/components/schemas/UserResults" UserResults: - required: - - "result" properties: result: $ref: "#/components/schemas/UserUnion" From b37739560e5d806963be45e79793d9af2a5440be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 20 Sep 2023 12:14:21 +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 | 2 -- dist/docs/openapi-3.0.yaml | 2 -- 2 files changed, 4 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 8edbae0..ac130ec 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -1802,8 +1802,6 @@ components: properties: result: $ref: '#/components/schemas/UserUnion' - required: - - result UserTweetsData: properties: user: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 97354d0..04191ac 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -1802,8 +1802,6 @@ components: properties: result: $ref: '#/components/schemas/UserUnion' - required: - - result UserTweetsData: properties: user: