Resources
FastAPI: Exclude Pydantic Model Fields from Responses
Exclude one or more fields in Pydantic model from appearing in FastAPI responses The Problem Some of the Pydantic models in my FastAPI project include secret internal fields that I don’t want to expose in the API response or generated documentation.
