Pydantic 2 的 Optional 字段没传,为什么仍报 Field requiredPydantic 2 区分允许 None 和允许省略。按字段默认值核对必填规则,部分更新用 exclude_unset 保留省略与显式清空的区别。Python · Pydantic2026.6.3