Make PaymentSparkWalletInfo.assetType a free-form currency code#685
Conversation
Drop the closed BTC/USDB enum on assetType so it can carry any configured Spark token currency code, and update the description to match. The valid set is now per-environment runtime config (the Spark token registry), which a static schema enum can't express. The generated side of this change already landed in webdev (lightsparkdev/webdev#28745); this brings the grid-api source spec (and the bundled openapi.yaml / mintlify/openapi.yaml) into sync. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PuNSpq8PKF6p1NK6z2gqBU
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
|
✱ Stainless preview builds for gridThis PR will update the cli go kotlin openapi php python ruby typescript ✅ grid-ruby studio · code
|
Greptile SummaryThis PR allows configured Spark token codes in payment wallet information. The main changes are:
Confidence Score: 5/5This looks safe to merge.
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/common/PaymentSparkWalletInfo.yaml | Widens the required assetType field to support currency codes supplied by the runtime Spark token registry. |
| openapi.yaml | Updates the generated root bundle to match the source schema. |
| mintlify/openapi.yaml | Updates the generated Mintlify bundle to match the source schema. |
Reviews (1): Last reviewed commit: "Make PaymentSparkWalletInfo.assetType a ..." | Re-trigger Greptile
Why
PaymentSparkWalletInfo.assetTypewas a closed enum (BTC/USDB). Grid now supports arbitrary Spark tokens, so the valid set is per-environment runtime config (the Spark token registry) and can't be expressed as a static schema enum. The generated client already stamps/reads any configured token's currency code here.This is the missing source-repo half of a change whose generated output already merged in webdev: lightsparkdev/webdev#28745 removed the same
assetTypeenum validator + description from the vendoredgrid-api/copy, but the corresponding grid-api source change was never made. This brings the source back in sync so the next webdevupdate_schema.shsync is a no-op instead of re-adding the enum.What Changed
openapi/components/schemas/common/PaymentSparkWalletInfo.yaml: dropenum: [BTC, USDB]onassetType; description "Type of asset" -> "Type of asset or configured Spark token currency code".openapi.yamlandmintlify/openapi.yamlvianpm run build:openapi(Redocly bundle). Diff is exactly the three-line change in each file, no reformat churn.Validation
npm run lint:openapi— valid, 0 errors (pre-existing warnings/infos only; none touchPaymentSparkWalletInfo).mintlify/openapi.yamlis byte-identical toopenapi.yaml(as the build enforces).🤖 Generated with Claude Code