# pydantic.error_wrappers.ValidationError: 1 validation error for Item
name
  field required (type=value_error.missing)

- **ID:** `python/fastapi-pydantic-validation-error`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A Pydantic model field is required but not provided in the request.

## Version Compatibility

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

## Workarounds

1. **Include all required fields in the request body** (95% success)
   ```
   curl -X POST http://localhost:8000/items -H 'Content-Type: application/json' -d '{"name": "item"}'
   ```
2. **Make the field optional with a default** (90% success)
   ```
   class Item(BaseModel):
    name: str = 'default'
   ```

## Dead Ends

- **Sending the field with a null value** — Null is not the same as a missing field; validation still fails. (80% fail)
- **Using the wrong field name** — Field names must match exactly. (90% fail)
