FastAPI 0.153.0

0.153.0
Changed 4
  • Empty scalar fields in form model unions use defaults or produce missing-field errors
  • Empty list items in form model unions are preserved
  • Omitted boolean fields in form model unions become False
  • Unselected files in form model unions are treated as missing
Fixed 1

1 change to check, marked in the notes below

From FastAPI

Unions of form models now apply the same browser form handling as individual models. Empty scalar fields use defaults or produce missing-field errors, empty list items are preserved, omitted boolean fields become False, and unselected files are treated as missing. JSON request bodies are unchanged. behavior changed · inferred

Fixes
  • 🐛 Apply browser form handling to unions of Pydantic models. PR #16540 by @tiangolo.
View original

Upgraded? How did it go?

Discussion