From 594667fc686806a6e1833a83d44ccd6b59a28186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 7 May 2025 23:07:17 +0900 Subject: [PATCH] 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 | 80 -------------------------------- dist/docs/openapi-3.0.yaml | 80 -------------------------------- tools/build_config.py | 2 + 3 files changed, 2 insertions(+), 160 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index f972340..012bd87 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -4968,14 +4968,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark - example: /i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark - type: string queryId: default: aoDbu3RHznuiSkQ9aNM67Q example: aoDbu3RHznuiSkQ9aNM67Q @@ -4990,8 +4982,6 @@ paths: - tweet_id type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -5047,14 +5037,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet - example: /i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet - type: string queryId: default: ojPdsZsimiJrUGLR1sjUtA example: ojPdsZsimiJrUGLR1sjUtA @@ -5074,8 +5056,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -5131,14 +5111,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet - example: /i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet - type: string features: properties: articles_preview_enabled: @@ -5370,8 +5342,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables - features @@ -5428,14 +5398,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark - example: /i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark - type: string queryId: default: Wlmlj2-xzyS1GN3a6cj-mQ example: Wlmlj2-xzyS1GN3a6cj-mQ @@ -5450,8 +5412,6 @@ paths: - tweet_id type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -5507,14 +5467,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet - example: /i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet - type: string queryId: default: iQtK4dl5hBmXewYZuEOKVw example: iQtK4dl5hBmXewYZuEOKVw @@ -5534,8 +5486,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -5591,14 +5541,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet - example: /i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet - type: string queryId: default: VaenaVgh5q5ih7kvyVjgtg example: VaenaVgh5q5ih7kvyVjgtg @@ -5618,8 +5560,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -5675,14 +5615,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet - example: /i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet - type: string queryId: default: lI07N6Otwv1PhnEgXILM7A example: lI07N6Otwv1PhnEgXILM7A @@ -5697,8 +5629,6 @@ paths: - tweet_id type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -7083,14 +7013,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet - example: /i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet - type: string queryId: default: ZYKSe-w7KEslx3JhSIk5LA example: ZYKSe-w7KEslx3JhSIk5LA @@ -7110,8 +7032,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables description: body diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 1e366ae..aad3248 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -5524,14 +5524,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark - example: /i/api/graphql/aoDbu3RHznuiSkQ9aNM67Q/CreateBookmark - type: string queryId: default: aoDbu3RHznuiSkQ9aNM67Q example: aoDbu3RHznuiSkQ9aNM67Q @@ -5546,8 +5538,6 @@ paths: - tweet_id type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -5603,14 +5593,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet - example: /i/api/graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet - type: string queryId: default: ojPdsZsimiJrUGLR1sjUtA example: ojPdsZsimiJrUGLR1sjUtA @@ -5630,8 +5612,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -5687,14 +5667,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet - example: /i/api/graphql/IID9x6WsdMnTlXnzXGq8ng/CreateTweet - type: string features: properties: articles_preview_enabled: @@ -5926,8 +5898,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables - features @@ -5984,14 +5954,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark - example: /i/api/graphql/Wlmlj2-xzyS1GN3a6cj-mQ/DeleteBookmark - type: string queryId: default: Wlmlj2-xzyS1GN3a6cj-mQ example: Wlmlj2-xzyS1GN3a6cj-mQ @@ -6006,8 +5968,6 @@ paths: - tweet_id type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -6063,14 +6023,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet - example: /i/api/graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet - type: string queryId: default: iQtK4dl5hBmXewYZuEOKVw example: iQtK4dl5hBmXewYZuEOKVw @@ -6090,8 +6042,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -6147,14 +6097,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet - example: /i/api/graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet - type: string queryId: default: VaenaVgh5q5ih7kvyVjgtg example: VaenaVgh5q5ih7kvyVjgtg @@ -6174,8 +6116,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -6231,14 +6171,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet - example: /i/api/graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet - type: string queryId: default: lI07N6Otwv1PhnEgXILM7A example: lI07N6Otwv1PhnEgXILM7A @@ -6253,8 +6185,6 @@ paths: - tweet_id type: object required: - - '@path' - - '@method' - queryId - variables description: body @@ -9522,14 +9452,6 @@ paths: application/json: schema: properties: - '@method': - default: POST - example: POST - type: string - '@path': - default: /i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet - example: /i/api/graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet - type: string queryId: default: ZYKSe-w7KEslx3JhSIk5LA example: ZYKSe-w7KEslx3JhSIk5LA @@ -9549,8 +9471,6 @@ paths: - dark_request type: object required: - - '@path' - - '@method' - queryId - variables description: body diff --git a/tools/build_config.py b/tools/build_config.py index d52125e..0245cab 100644 --- a/tools/build_config.py +++ b/tools/build_config.py @@ -48,6 +48,7 @@ def hooks_generator(self, queryParameterJson=True): split=-1, schemaType=None, contentType="application/json", + ignoreKeys=["@path", "@method"], ), ] for key in ["post"] @@ -66,6 +67,7 @@ def hooks_generator(self, queryParameterJson=True): split=2, schemaType=None, contentType="application/x-www-form-urlencoded", + ignoreKeys=["@path", "@method"], ), ] for key in ["v1.1-post", "v2.0-post"]