From ee720eb82f336885d95e1fa398025733bd5827aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sat, 2 Nov 2024 04:56:40 +0900 Subject: [PATCH] add priority MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/openapi/openapi-3.0.yaml | 6 ++++++ test/python/test_serialize.py | 1 + 2 files changed, 7 insertions(+) diff --git a/src/openapi/openapi-3.0.yaml b/src/openapi/openapi-3.0.yaml index 9c77116..f828388 100644 --- a/src/openapi/openapi-3.0.yaml +++ b/src/openapi/openapi-3.0.yaml @@ -34,6 +34,11 @@ components: in: header name: Accept-Language type: apiKey + Priority: + description: "u=1, i" + in: header + name: Priority + type: apiKey Referer: description: "https://x.com/home" in: header @@ -133,6 +138,7 @@ security: - Accept: [] - AcceptEncoding: [] - AcceptLanguage: [] + - Priority: [] - Referer: [] - SecChUa: [] - SecChUaMobile: [] diff --git a/test/python/test_serialize.py b/test/python/test_serialize.py index 69f5b93..f6fc152 100644 --- a/test/python/test_serialize.py +++ b/test/python/test_serialize.py @@ -255,6 +255,7 @@ if __name__ == "__main__": "sec-ch-ua-platform": '"Windows"', "accept-encoding": "identity", "referer": twitter_url, + "priority": "u=1, i", "authorization": f"Bearer {access_token}", "x-twitter-auth-type": "OAuth2Session", "x-twitter-client-language": "en",