map_v1_to_v2
Translate a v1 clearskies code snippet to v2, providing the updated code, breaking changes, and migration notes for the specified context.
Instructions
Map a v1 code snippet to its v2 equivalent.
Useful for understanding how specific v1 patterns translate to v2.
Args:
v1_code_snippet: The v1 code to convert
context: Context hint ('model', 'handler', 'di', 'general')
Returns:
Dictionary containing:
- v2_code: Converted v2 code
- breaking_changes: List of breaking changes
- notes: Migration notes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | general | |
| v1_code_snippet | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||