# PHP Type Generation from OpenAPI (Future Enhancement)

## Status: 📋 Planned

Type generation from OpenAPI schemas will ensure PHP types match the spec exactly.

## Recommended Tool

**openapitools/openapi-generator-cli** - Industry standard, multi-language support

## Implementation Plan

```bash
# 1. Install generator
composer require --dev openapitools/openapi-generator-cli

# 2. Generate types
vendor/bin/openapi-generator-cli generate \
  -i openapi.yml \
  -g php \
  -o src/Generated

# 3. Use in code
use Drupal\api_normalization\Generated\Model\NormalizeRequest;
```

## Benefits

- ✅ Type safety guaranteed
- ✅ Auto-completion in IDEs  
- ✅ Compile-time validation
- ✅ No manual type definitions

See full documentation when implemented.
