Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No docs for API user parameter #1278

Closed
lifeiteng opened this issue Aug 28, 2023 · 0 comments
Closed

No docs for API user parameter #1278

lifeiteng opened this issue Aug 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lifeiteng
Copy link

Examples https://github.com/fastapi-users/fastapi-users/tree/master/examples/sqlalchemy-oauth
https://github.com/fastapi-users/fastapi-users/blob/master/fastapi_users/router/users.py#L38

    @router.get(
        "/me",
        response_model=user_schema,
        name="users:current_user",
        responses={
            status.HTTP_401_UNAUTHORIZED: {
                "description": "Missing token or inactive user.",
            },
        },
    )
    async def me(
        user: models.UP = Depends(get_current_active_user),
    ):
        return schemas.model_validate(user_schema, user)

截屏2023-08-28 20 17 18

To Reproduce

cd examples/sqlalchemy-oauth
uvicorn app.app:app

Expected behavior

user should be documented, but nothing there.

Programmer will not know how to pass parameters.

@lifeiteng lifeiteng added the bug Something isn't working label Aug 28, 2023
@fastapi-users fastapi-users locked and limited conversation to collaborators Aug 28, 2023
@frankie567 frankie567 converted this issue into discussion #1279 Aug 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant