# pydantic.errors.NumberError: 值不大于 100

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

## 根因

带有 Field(le=100) 的数字字段接收到大于 100 的值，违反了约束。

## 版本兼容性

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

## 解决方案

1. **** (90% 成功率)
   ```
   Adjust input value to meet constraint: value = min(value, 100)
   ```
2. **** (95% 成功率)
   ```
   Modify Field constraint: Field(le=200)
   ```

## 无效尝试

- **** — lt means strictly less than, so 100 would still fail. (50% 失败率)
- **** — Type mismatch with constraints may cause issues. (70% 失败率)
