Relative Content

Tag Archive for python-3.xserializationpydantic-v2

Can I return different Schemas from the Pydantic model_validator?

Summary of the problem: A well-established DB table expects a range of page views. However, when developing the API, I found it to be an abysmal user experience. I plan to create a min/max field for the user to supply input, then change it so it’s in a format the DB expects.