About Web API, user might send request in unexpected format. So we need to check request format and type in run time. We can use Pydantic for this purpose.
Definition of Done
Data Model a.k.a. DTO (Data Transfer Object) is defined.
How
Consider IO model and share to team members to reach agreement.
Implement IO model using Pydantic BaseModel class.
Why
About Web API, user might send request in unexpected format. So we need to check request format and type in run time. We can use Pydantic for this purpose.
Definition of Done
Data Model a.k.a. DTO (Data Transfer Object) is defined.
How
BaseModel
class.