Commit 3813825
committed
fix: extend zip rename overlay to component schemas
The existing $.paths..schema..zip rule only matches `zip` properties in
inline schemas under paths. Many address schemas live under
components.schemas and are referenced via $ref from path operations —
those zip occurrences never get renamed, so the generated Python
ends up with parameters named `zip`, which shadows the `zip()` builtin
and fails pylint W0622 during the Compile SDK step (most recent
failure: gusto/gusto-python-client run 26044020966, contractors.py
:2181 and locations.py:251).
Add a second rule targeting $.components.schemas..properties.zip so
the rename covers every `zip` postal-code property the spec exposes,
regardless of whether it's inlined or $ref'd. Applied to both the
embedded and app_int overlays.1 parent 98ef86e commit 3813825
2 files changed
Lines changed: 20 additions & 0 deletions
File tree
- gusto_app_int/.speakeasy
- gusto_embedded/.speakeasy
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments