You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to make this middleware correctly integrate with the openapi generators from fastapi?
For instance. Currently, this:
@router.get("/me", response_model=schemas.User)
@requires('user')
async def read_user_me(request: Request, db: Session = Depends(get_db)):
user = User.get_user(db, request.user.userid)
return user
Is not detected by fastapi's openapi generator as an authenticated endpoint. Is there a way to make this library integrate correctly with the openapi generator.
The text was updated successfully, but these errors were encountered:
Is there a way to make this middleware correctly integrate with the openapi generators from fastapi?
For instance. Currently, this:
Is not detected by fastapi's openapi generator as an authenticated endpoint. Is there a way to make this library integrate correctly with the openapi generator.
The text was updated successfully, but these errors were encountered: