Skip to content

Upgrading fastapi 0.149 to 0.150

Breaking0.149.0 → 0.150.0Breaking1

BreakingUpgrade verdict

1 breaking change.

  • When a browser form leaves a file field empty, it sends an empty file. FastAPI now treats that as no file at all: required file fields give a validation error, fields with defaults use their defaults, and empty entries are ignored in file lists. Real zero-byte files with a name are still accepted.
1 item needs code or config changes
Breaking1
Treats unselected browser file inputs (empty filename and content) as missing, so required file fields now fail validation.