Skip to content

chore: Sync account schemas - #881

Open
lightspark-copybara[bot] wants to merge 1 commit into
mainfrom
auto/sync-grid-schemas-20260831-161939
Open

chore: Sync account schemas#881
lightspark-copybara[bot] wants to merge 1 commit into
mainfrom
auto/sync-grid-schemas-20260831-161939

Conversation

@lightspark-copybara

Copy link
Copy Markdown
Contributor

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 schemas
  • common/PaymentInstructions.yaml — payment instructions oneOf (new currencies added)
  • external_accounts/ — per-currency external account schemas (reference common/)

Please review the changes before merging.

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
grid-flow-builder Ignored Ignored Preview Aug 31, 2026 4:19pm
grid-wallet-demo Ignored Ignored Preview Aug 31, 2026 4:19pm

Request Review

@mintlify

mintlify Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Grid 🟢 Ready View Preview Aug 31, 2026, 4:21 PM

@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

✱ Stainless preview builds for grid

This PR will update the grid SDKs with the following commit messages.

cli
⏳ (generating...)```
chore: Sync account schemas

**go**
⏳ (generating...)```
chore: Sync account schemas

kotlin
⏳ (generating...)```
chore: Sync account schemas

**openapi**
⏳ (generating...)```
chore: Sync account schemas

php
⏳ (generating...)```
chore: Sync account schemas

**python**
⏳ (generating...)```
chore: Sync account schemas

ruby
⏳ (generating...)```
chore: Sync account schemas

**typescript**
⏳ (generating...)```
chore: Sync account schemas

Edit this comment to update them. They will appear in their respective SDK's changelogs.

grid-typescript studio
grid-openapi studio
grid-ruby studio
grid-kotlin studio
grid-go studio
grid-python studio
grid-php studio
grid-cli studio

⏳ These are partial results; builds are still running.


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-08-31 16:30:28 UTC

@greptile-apps

greptile-apps Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR synchronizes currency-specific account, beneficiary, external-account, and payment-instruction schemas, including new ILS support. The ILS payment-instructions branch is currently unsatisfiable because the shared payment-account enum was not extended with ILS_ACCOUNT.

  • Adds ILS account, beneficiary, external-account, and payment-instruction definitions.
  • Replaces shared business-beneficiary references with currency-specific schemas.
  • Updates assembled OpenAPI and Mintlify contracts alongside modular schemas.

Confidence Score: 4/5

The PR should not merge until ILS_ACCOUNT is added to the shared payment-account type so the newly advertised ILS payment-instructions variant can validate.

The new ILS payment schema requires accountType: ILS_ACCOUNT while simultaneously inheriting an enum that excludes that value, making every ILS payment-instructions payload invalid.

Files Needing Attention: openapi/components/schemas/common/PaymentAccountType.yaml, openapi/components/schemas/common/PaymentInstructions.yaml, openapi.yaml, mintlify/openapi.yaml

Important Files Changed

Filename Overview
openapi/components/schemas/common/PaymentInstructions.yaml Adds the ILS union branch, but that branch cannot validate because its inherited account-type constraints conflict.
openapi/components/schemas/common/PaymentIlsAccountInfo.yaml Combines the shared payment-account base and ILS account schema, exposing the conflicting accountType enums.
openapi/components/schemas/common/PaymentAccountType.yaml Remains synchronized without ILS_ACCOUNT, making the newly added ILS payment-instructions schema unsatisfiable.
openapi/components/schemas/external_accounts/ExternalAccountCreateInfoOneOf.yaml Adds the ILS external-account creation variant and discriminator mapping consistently.
openapi.yaml The assembled contract reproduces the unsatisfiable ILS payment-instructions branch.
mintlify/openapi.yaml The documentation contract reproduces the same conflicting ILS payment-account constraints.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  PI[PaymentInstructions] --> ILS[PaymentIlsAccountInfo]
  ILS --> BASE[BasePaymentAccountInfo]
  ILS --> INFO[IlsAccountInfo]
  BASE --> ENUM["PaymentAccountType<br/>excludes ILS_ACCOUNT"]
  INFO --> VALUE["accountType = ILS_ACCOUNT"]
  ENUM --> CONFLICT[Unsatisfiable allOf]
  VALUE --> CONFLICT
Loading
Prompt To Fix All With AI
### Issue 1
openapi/components/schemas/common/PaymentInstructions.yaml:56
**ILS account type conflict**

When payment instructions contain `accountType: ILS_ACCOUNT`, `PaymentIlsAccountInfo` requires that value while its inherited `PaymentAccountType` enum excludes it, causing every ILS payment-instructions payload to fail schema validation and preventing generated clients from representing this new variant.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (1): Last reviewed commit: "chore: Sync account schemas" | Re-trigger Greptile

- $ref: ../common/PaymentSlvAccountInfo.yaml
- $ref: ../common/PaymentSwiftAccountInfo.yaml
- $ref: ../common/PaymentCnyAccountInfo.yaml
- $ref: ../common/PaymentIlsAccountInfo.yaml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 ILS account type conflict

When payment instructions contain accountType: ILS_ACCOUNT, PaymentIlsAccountInfo requires that value while its inherited PaymentAccountType enum excludes it, causing every ILS payment-instructions payload to fail schema validation and preventing generated clients from representing this new variant.

Knowledge Base Used: Grid API contract

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/PaymentInstructions.yaml
Line: 56

Comment:
**ILS account type conflict**

When payment instructions contain `accountType: ILS_ACCOUNT`, `PaymentIlsAccountInfo` requires that value while its inherited `PaymentAccountType` enum excludes it, causing every ILS payment-instructions payload to fail schema validation and preventing generated clients from representing this new variant.

**Knowledge Base Used:** [Grid API contract](https://app.greptile.com/lightspark/-/custom-context/knowledge-base/lightsparkdev/grid-api/-/docs/api-contract.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants