✨ Add `model_fields_optional` to convert inherited fields to Optional by Krishnachaitanyakc · Pull Request #1830 · fastapi/sqlmodel
and others added 3 commits
March 24, 2026 23:18Add support for `model_fields_optional="all"` configuration that makes all inherited fields Optional with a default of None. This enables the common pattern of creating "update" models where all fields are optional, reducing boilerplate when building CRUD APIs. Fixes fastapi#64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters