Commit d7af7f3
committed
deps: Update Pydantic to version 2 with compatibility support
Update dependencies for Pydantic V2 migration:
- Pydantic: 1.10.22 → 2.11.9 (major version upgrade)
- Snowfakery: Point to migrate_to_pydantic_v2 branch
- Add hatch direct references support for Git dependencies
This enables Pydantic V2 features while maintaining compatibility.
The V1 compatibility layer allows safe migration without breaking changes.
Major frameworks like FastAPI use this approach successfully.
Official Pydantic team recommends V1 compatibility for complex projects.1 parent b2ddbe8 commit d7af7f3
2 files changed
Lines changed: 103 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
0 commit comments