Pydantic

Libraries

Validation and serialisation at every boundary, the wire shape is a declared type.

A Python library that validates data against type annotations at runtime and produces JSON Schema from the same definitions.

How we use it

The type model of the estate rests on it: request bodies, configuration, document data and extraction results are all Pydantic models, so the same declaration validates input and describes it to a consumer.

v2

Version

18

systems