Skip to content
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

Why doesn't the make_json_response function have a default value for the by_alias argument? #58

Open
NiKuma0 opened this issue Sep 20, 2022 · 0 comments

Comments

@NiKuma0
Copy link

NiKuma0 commented Sep 20, 2022

def make_json_response(
    content: Union[BaseModel, Iterable[BaseModel]],
    status_code: int,
    by_alias: bool,
    exclude_none: bool = False,
    many: bool = False,
) -> Response:
    ...
        js = content.json(exclude_none=exclude_none, by_alias=by_alias)
    ...

The content.json method has a default value for the by_alias argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant