Skip to content

Commit 95eefd2

Browse files
Split request and response schemas for external account paymentRails (#302)
## Summary - Split the external account create request and response schemas so that `paymentRails` is only present in the response, not the request - Each common `*AccountInfo.yaml` is now split into `*AccountInfoBase.yaml` (without `paymentRails`) and `*AccountInfo.yaml` (allOf composition with `paymentRails`) - New `*ExternalAccountCreateInfo.yaml` schemas reference the Base variants (no `paymentRails`), while response schemas continue using the full `*AccountInfo.yaml` - Request examples in endpoint files updated to remove `paymentRails` ## Test plan - [x] `make build` passes - OpenAPI spec bundles successfully - [x] `make lint-openapi` passes - validation reports `Your API description is valid` - [ ] Verify generated docs render correctly with `make mint` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent bff1629 commit 95eefd2

113 files changed

Lines changed: 4731 additions & 1817 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stainless/stainless.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -168,22 +168,22 @@ resources:
168168
paginated: false
169169
create: post /platform/external-accounts
170170
models:
171-
usd_account_info: "#/components/schemas/UsdAccountInfo"
172-
brl_account_info: "#/components/schemas/BrlAccountInfo"
173-
mxn_account_info: "#/components/schemas/MxnAccountInfo"
174-
dkk_account_info: "#/components/schemas/DkkAccountInfo"
175-
eur_account_info: "#/components/schemas/EurAccountInfo"
176-
inr_account_info: "#/components/schemas/InrAccountInfo"
177-
ngn_account_info: "#/components/schemas/NgnAccountInfo"
178-
cad_account_info: "#/components/schemas/CadAccountInfo"
179-
gbp_account_info: "#/components/schemas/GbpAccountInfo"
180-
hkd_account_info: "#/components/schemas/HkdAccountInfo"
181-
idr_account_info: "#/components/schemas/IdrAccountInfo"
182-
myr_account_info: "#/components/schemas/MyrAccountInfo"
183-
php_account_info: "#/components/schemas/PhpAccountInfo"
184-
sgd_account_info: "#/components/schemas/SgdAccountInfo"
185-
thb_account_info: "#/components/schemas/ThbAccountInfo"
186-
vnd_account_info: "#/components/schemas/VndAccountInfo"
171+
usd_account_info: "#/components/schemas/UsdAccountInfoBase"
172+
brl_account_info: "#/components/schemas/BrlAccountInfoBase"
173+
mxn_account_info: "#/components/schemas/MxnAccountInfoBase"
174+
dkk_account_info: "#/components/schemas/DkkAccountInfoBase"
175+
eur_account_info: "#/components/schemas/EurAccountInfoBase"
176+
inr_account_info: "#/components/schemas/InrAccountInfoBase"
177+
ngn_account_info: "#/components/schemas/NgnAccountInfoBase"
178+
cad_account_info: "#/components/schemas/CadAccountInfoBase"
179+
gbp_account_info: "#/components/schemas/GbpAccountInfoBase"
180+
hkd_account_info: "#/components/schemas/HkdAccountInfoBase"
181+
idr_account_info: "#/components/schemas/IdrAccountInfoBase"
182+
myr_account_info: "#/components/schemas/MyrAccountInfoBase"
183+
php_account_info: "#/components/schemas/PhpAccountInfoBase"
184+
sgd_account_info: "#/components/schemas/SgdAccountInfoBase"
185+
thb_account_info: "#/components/schemas/ThbAccountInfoBase"
186+
vnd_account_info: "#/components/schemas/VndAccountInfoBase"
187187
# base_external_account_info: "#/components/schemas/BaseExternalAccountInfo"
188188

189189
transfer_in:
@@ -316,7 +316,7 @@ resources:
316316
retrieve: get /verifications/{verificationId}
317317
discoveries:
318318
methods:
319-
list:
319+
list:
320320
endpoint: get /discoveries
321321
paginated: false
322322

0 commit comments

Comments
 (0)