Skip to content Skip to sidebar Skip to footer
Showing posts with the label Pydantic

How To Validate Complex List Types In Pydantic?

Why does pydantic not validate an argument that is the list of Foo objects but throws ValidationErr… Read more How To Validate Complex List Types In Pydantic?

Python Type Hinting: Function Return Type, Given As Argument, But Type Is Generic Alias Like Union

We can specify easily return type of function, even if type we expect is provided as one of it'… Read more Python Type Hinting: Function Return Type, Given As Argument, But Type Is Generic Alias Like Union

Pydantic Convert To Jsonable Dict (not Full Json String)

I'd like to use pydantic for handling data (bidirectionally) between an api and datastore due t… Read more Pydantic Convert To Jsonable Dict (not Full Json String)

Pydantic Convert To Jsonable Dict (not Full Json String)

I'd like to use pydantic for handling data (bidirectionally) between an api and datastore due t… Read more Pydantic Convert To Jsonable Dict (not Full Json String)

How To Validate Complex List Types In Pydantic?

Why does pydantic not validate an argument that is the list of Foo objects but throws ValidationErr… Read more How To Validate Complex List Types In Pydantic?

Can I Create A Unix Time Type Which Automatically Converts To Datetime In Pydantic?

I receive a JSON response like with a unix timestamp, e.g.: {'protocol': 'http', &#… Read more Can I Create A Unix Time Type Which Automatically Converts To Datetime In Pydantic?