chore: Sync account schemas#568
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
✱ Stainless preview builds for gridThis PR will update the cli csharp go kotlin openapi php python ruby typescript ✅ grid-ruby studio · code
|
Greptile SummaryThis PR syncs the
Confidence Score: 5/5Safe to merge — the single-field required change is consistent across all three schema representations and aligns with backend enforcement. The change is minimal and targeted: one field removed from required, one field added, and address is preserved as an optional property so existing clients sending it are not broken. All three files are updated identically with no drift between the source YAML and the two bundled copies. No files require special attention.
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/common/EurBeneficiary.yaml | Removes address from required fields, adds countryOfResidence as required — address remains as an optional property |
| openapi.yaml | Inline EurBeneficiary schema updated consistently with the source YAML — required list swaps address for countryOfResidence |
| mintlify/openapi.yaml | Mirror of openapi.yaml change; both bundles stay in sync with the source schema |
Sequence Diagram
sequenceDiagram
participant Client
participant Schema as OpenAPI Schema (EurBeneficiary)
participant API as Backend (sparkcore)
Note over Schema: Before PR
Client->>Schema: Validate payload
Schema-->>Client: Required: beneficiaryType, address, fullName
Note over Schema: After PR
Client->>Schema: Validate payload
Schema-->>Client: Required: beneficiaryType, countryOfResidence, fullName
Client->>API: POST /payment (with countryOfResidence)
API-->>Client: 200 OK
Note over Schema,API: Schema now matches backend enforcement
Reviews (1): Last reviewed commit: "chore: Sync account schemas" | Re-trigger Greptile
## Summary - Fixed `buildEurBeneficiary` in Kotlin sample to match the `EurBeneficiary` OpenAPI schema - The schema requires `countryOfResidence` (not `address`) as a required field - Made `address` optional since it's not required in the schema ## Context This fix was identified during the documentation sync review of recent schema changes: - `ca99dc5` - chore: Sync account schemas (#568) - `20eb971` - [grid] clarify email OTP registration bundle docs (#562) The `EurBeneficiary.yaml` schema has: ```yaml required: - beneficiaryType - countryOfResidence - fullName ``` But the Kotlin sample was: 1. Requiring `address` (which is optional in the schema) 2. Not setting `countryOfResidence` (which is required) ## Test plan - [x] Run `make lint` - passes - [ ] Verify Kotlin sample compiles with Grid SDK 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Auto-synced account schemas.
These schemas are generated from VASP adapter field definitions in sparkcore.
Synced schemas:
common/— per-currency account info, beneficiary, and payment account schemascommon/PaymentInstructions.yaml— payment instructions oneOf (new currencies added)external_accounts/— per-currency external account schemas (reference common/)Please review the changes before merging.