# pydantic_core._pydantic_core.ValidationError: 1 validation error for UserCreate
email
  Field required [type=missing, input_value={'name': 'a'}, input_type=dict]

- **ID:** `python/pydantic-field-required-missing`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The required field 'email' is absent from the input dict. In Pydantic v2 a field without a default is required; missing key triggers 'missing'.

## Version Compatibility

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

## Workarounds

1. **** (92% success)
   ```
   from typing import Optional
from pydantic import BaseModel
class UserCreate(BaseModel):
    email: Optional[str] = None
   ```
2. **** (80% success)
   ```
   from pydantic import BaseModel, Field
class UserCreate(BaseModel):
    email: str = Field(default_factory=lambda: 'unknown@example.com')
   ```

## Dead Ends

- **** — Type checker complains and downstream code gets None where str is expected, causing AttributeError later. (55% fail)
- **** — Empty string bypasses required validation and pollutes DB with blank emails. (50% fail)
- **** — Silently swallows real data problems; later inserts fail with NOT NULL constraint. (40% fail)
