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:
parent
28e49c7ddb
commit
0bf572706a
6 changed files with 38 additions and 9 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue