News for hackers. Stuff that matters.
Re:I use Attrs instead of Pydantic by zmmmmm on Thursday August 26, 2021 @06:14PM (#28321666)
I wish json-schema was nicer to write and if it was I would do that. However its way too unfriendly, so using something like PyDantic models as the "source of truth" is much easier, and at least lets other clients generate definitions and validate their inputs / outputs even if the generated schemas aren't perfect.

There are no comments on this comment yet.