Coverage for app/core/base/base_response.py: 100%
6 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
2from abc import ABCMeta
4from pydantic.alias_generators import to_camel
5from sqlmodel import SQLModel
6from sqlmodel._compat import SQLModelConfig
9class BaseResponse(SQLModel, metaclass=ABCMeta):
10 """
11 レスポンススキーマのベース.
13 snake_caseの入力をcamelCaseに変換する.
14 """
16 model_config = SQLModelConfig(
17 populate_by_name=True,
18 alias_generator=to_camel,
19 )