1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

add useragent

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-09-29 19:01:46 +09:00
parent 28e49c7ddb
commit 0bf572706a
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
6 changed files with 38 additions and 9 deletions

View file

@ -6,6 +6,7 @@ from hooks import (
AddSecuritySchemesOnSecuritySchemes,
RemoveErrorHandle,
SetResponsesHeader,
SetUserAgentOnSecuritySchemes,
)
@ -40,7 +41,10 @@ class Config:
additionalHooks.append(RemoveErrorHandle())
return {
"openapi": [AddSecuritySchemesOnSecuritySchemes()],
"openapi": [
AddSecuritySchemesOnSecuritySchemes(),
SetUserAgentOnSecuritySchemes(),
],
"schemas": [],
"other": [],
"request": {