Relative Content

Tag Archive for fastapipydantic

FastAPI/Pydantic not validating nested models

For my FastAPI app, I’m trying to get Pydantic to validate my model with nested models in my item_config_descriptor field, but it doesn’t work. I should say that item_config_descriptor is not actually stored in the DB, but it is needed in the request body. I have this code.