Files
plex-playlist-old/docs/adrs/007-serialization-validation.md
2023-10-24 13:34:04 -04:00

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.