From 785a6791b8fe18f9d16bc73f139f849af5afd3dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 23 Apr 2023 02:48:40 +0900 Subject: [PATCH] remove AuthType in header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/config/parameters.yaml | 7 ------- src/openapi/openapi-3.0.yaml | 11 ++++++----- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/config/parameters.yaml b/src/config/parameters.yaml index 4be4c2b..3ab78cf 100644 --- a/src/config/parameters.yaml +++ b/src/config/parameters.yaml @@ -41,13 +41,6 @@ paths: type: string default: "yes" description: "Unknown what this value means." - - name: x-twitter-auth-type - in: header - required: true - schema: - type: string - default: "OAuth2Session" - description: "Unknown what this value means." - name: x-twitter-client-language in: header required: true diff --git a/src/openapi/openapi-3.0.yaml b/src/openapi/openapi-3.0.yaml index 97c0c73..6e18dca 100644 --- a/src/openapi/openapi-3.0.yaml +++ b/src/openapi/openapi-3.0.yaml @@ -23,11 +23,6 @@ components: # type: http # scheme: bearer # description: "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA" - # AuthType: - # type: apiKey - # in: header - # name: x-twitter-auth-type - # description: "OAuth2Session" CsrfToken: type: apiKey @@ -47,6 +42,12 @@ components: name: auth_token description: "HttpOnly cookie" + authType: + type: apiKey + in: header + name: x-twitter-auth-type + description: "OAuth2Session if you are logged in" + security: - bearerAuth: [] - CsrfToken: []