Repository navigation
refactor(cards): name the card update, dispute, and environment enums - #1153
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
Contributor
|
shreyav
force-pushed
the
named-enums-cards
branch
from
October 9, 2026 17:01
3908f26 to
32dd409
Compare
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
JasonCWang
approved these changes
Oct 9, 2026
CardUpdateRequest.status and .substatus, SandboxCardDisputeResponse.status, SandboxCardDisputeCloseRequest.disposition, and CardPinUrlResponse.environment declared their enums inline. Each is now a component schema. The wire format is unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MYijrrgsrFLJZ5fkmC5XwJ
shreyav
force-pushed
the
named-enums-cards
branch
from
October 9, 2026 17:22
32dd409 to
977f4b4
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Independent of the quote and transaction enum PRs; this one targets
maindirectly. It gives inline enums on the cards surface a named schema so generated clients emit enum types instead of plain strings.What changed
CardUpdateRequest.statusandCardUpdateRequest.substatusnow referenceCardUpdateStatusandCardUpdateSubstatus. The update status is a three-value subset ofCardStatus, so it keeps its own schema rather than widening the request to every card status.SandboxCardDisputeResponse.statusnow referencesSandboxCardDisputeStatus.SandboxCardDisputeCloseRequest.dispositionnow referencesCardDisputeDisposition. The response'sdispositionstays inline because it is nullable and expresses that with anullenum member, which does not fit a shared string enum without restructuring the field.CardPinUrlResponse.environmentnow referencesGridEnvironment.openapi.yamlandmintlify/openapi.yamlwithmake build.SDK impact
The wire format is unchanged. In statically typed SDKs these fields change from string to enum, which can require source changes for callers that construct the request or read the field as a string.
Test plan
make lint-openapi: Redocly reports the description valid, Spectral exits 0.oasdiff breakingagainstmain: no breaking changes.🤖 Generated with Claude Code
https://claude.ai/code/session_01MYijrrgsrFLJZ5fkmC5XwJ