# fastapi.exceptions.RequestValidationError: 1 validation error for Request\npath -> item_id\n  value is not a valid integer (type=type_error.integer)

- **ID:** `python/fastapi-path-parameter-conversion-error`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

路径参数类型与声明不符。

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   @app.get('/items/{item_id}')\nasync def get_item(item_id: int):\n    return {'item_id': item_id}
   ```
2. **** (90% success)
   ```
   from fastapi import Path\nitem_id: int = Path(..., ge=1)
   ```

## Dead Ends

- **** — 失去类型验证。 (60% fail)
- **** — 容易出错。 (50% fail)
