Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions gusto_app_int/.speakeasy/speakeasy-modifications-overlay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ info:
before: ""
type: speakeasy-modifications
actions:
# Rename the `zip` postal-code property to `zip_code` so the generated
# Python SDK doesn't shadow the `zip()` builtin (pylint W0622 fails the
# Compile SDK step). The original rule only matched inline schemas under
# `paths`; many address schemas live under `components.schemas` and are
# referenced via $ref, so we also need to rewrite the property there.
# Both rules together cover every `zip` postal-code property the spec
# exposes.
- target: $.paths..schema..zip
update:
x-speakeasy-name-override: zip_code
- target: $.components.schemas..properties.zip
update:
x-speakeasy-name-override: zip_code
10 changes: 10 additions & 0 deletions gusto_embedded/.speakeasy/speakeasy-modifications-overlay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ info:
before: ""
type: speakeasy-modifications
actions:
# Rename the `zip` postal-code property to `zip_code` so the generated
# Python SDK doesn't shadow the `zip()` builtin (pylint W0622 fails the
# Compile SDK step). The original rule only matched inline schemas under
# `paths`; many address schemas live under `components.schemas` and are
# referenced via $ref, so we also need to rewrite the property there.
# Both rules together cover every `zip` postal-code property the spec
# exposes.
- target: $.paths..schema..zip
update:
x-speakeasy-name-override: zip_code
- target: $.components.schemas..properties.zip
update:
x-speakeasy-name-override: zip_code
Loading