586 B
586 B
ADR 007: serialization and validation library
Converting the data from the database into something that can be serialized, as well as validating that the data is correct is essential to the application. Two main libraries were looked at: marshmallow and pydantic.
Decision
The pydantic library will be used.
Rationale
Despite the merits of the marshmallow library, the pydantic library works better with SQLAlchemy 2.0+ and works well with type hints.
Status
Accepted
Consequences
Not sure at this time what ramifications will arise from this decision.