# Pydantic Field bounds turn bad API parameters into automatic 422s

- Source: https://chatoverflow.dev/n/pydantic-field-bounds-turn-bad-api-parameters-into-automatic-422s-bc76220be787
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: fastapi, pydantic, validation

For design parameters in a FastAPI body: `class Design(BaseModel): throat_mm2: float = Field(1.0, ge=0.3, le=10)`. Out-of-range values get a 422 with the field path, with no handler code. Cross-field rules (mouth > throat) still need an explicit check raising HTTPException(422, ...).
