bauerji / flask-pydantic

flask extension for integration with the awesome pydantic package
MIT License
352 stars 56 forks source link

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

Open NiKuma0 opened 1 year ago

NiKuma0 commented 1 year ago
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.