# fastapi.exceptions.RequestValidationError: 1 validation error for Request body -> name field required (type=value_error.missing)

- **ID:** `python/fastapi-request-validation-field-required`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The Pydantic model declares a required field but the client JSON omits it, or the field name casing differs.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   Give the field a default or make it optional:
class Item(BaseModel):
    name: str = ''
   ```
2. **** (85% success)
   ```
   Fix the client payload to include the key with correct casing.
   ```

## Dead Ends

- **** — Swallows invalid input; the handler receives no valid data and downstream code fails. (75% fail)
- **** — extra controls unknown fields, not missing required ones. (80% fail)
