Commit 8cb0cf1
fix(ssh): run SSHConnectionParams auth validator on pydantic >=2.12
check_auth_method_provided used @classmethod together with @model_validator(mode=after). That combination is deprecated and silently skipped on pydantic >= 2.12, so the auth-method/host/username checks never ran. Make it an instance-method mode=after validator, supported across pydantic 2.x and 3.0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0fe026b commit 8cb0cf1
1 file changed
Lines changed: 5 additions & 6 deletions
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | | - | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | | - | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
0 commit comments