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
- Unions of form models now apply the same browser form handling as individual models behavior changed · inferred, marked in the notes below
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