# pydantic.error_wrappers.ValidationError: Model 的 1 个验证错误
  不允许额外字段

- **ID:** `python/pydantic-extra-fields-forbidden`
- **领域:** python
- **类别:** data_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

模型配置为 extra='forbid'，但接收到了模型中未定义的额外字段。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 2.x | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   Set extra='ignore' to silently drop extra fields
   ```
2. **** (85% 成功率)
   ```
   Add the extra field to model if needed
   ```

## 无效尝试

- **** — This may not be desired; better to allow or ignore. (50% 失败率)
- **** — Data may be lost or inconsistent. (70% 失败率)
