Don't show optional token param in API docs

This commit is contained in:
grossmj 2022-07-20 00:29:42 +02:00
parent 5d4645b2c1
commit 037c659f9b

View File

@ -32,7 +32,7 @@ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/v3/users/login", auto_error=Fals
async def get_user_from_token( async def get_user_from_token(
bearer_token: str = Depends(oauth2_scheme), bearer_token: str = Depends(oauth2_scheme),
user_repo: UsersRepository = Depends(get_repository(UsersRepository)), user_repo: UsersRepository = Depends(get_repository(UsersRepository)),
token: Optional[str] = None, token: Optional[str] = Query(None, include_in_schema=False)
) -> schemas.User: ) -> schemas.User:
if bearer_token: if bearer_token: