Pydantic — OpenAPI schema
What This Cluster Means
Pydantic cluster (18 fixes): OpenAPI/schema regressions: generated schemas change and break clients/tooling after upgrades.
Top Queries / Error Strings
These are the lines developers tend to search during incidents.
-
1. Profiling code for a variety of cases - complex models, simple models, `pydantic` imports, etc. I'm trying to identify where the most significant bottlenecks are, and where we're doing more than we need to in terms of -
A little context: I was trying to write some code that creates a "stripped down version" of a schema to be used with Gemini -
Add performance tests for schema building + data validation -- discriminated union edition -
Difference between TypeAdapter().json_schema and BaseModel.model_json_schema -
For example, generating a single python file that contains all Pydantic models from the Swagger API schemas below demonstrates this issue clearly.
Search within this library’s fixes:
Explore Related Hubs
Jump into library hubs and best-practices playbooks for deeper coverage.