From 6a57a040c1381bf8211bbe93e6c5d04bb4adcb4b Mon Sep 17 00:00:00 2001 From: Bolt Agent Date: Thu, 17 Sep 2026 01:26:54 +0000 Subject: [PATCH] Encode the card status field dependency in the schema `PATCH /cards/{id}` requires `substatus` and `reason` whenever `status` is supplied, but that requirement lived only in prose. Validators and generated clients accepted a status-only request that the endpoint rejects with `400 INVALID_INPUT`. `dependentRequired` states it in the schema, so the machine-readable contract now matches the documented one. Co-Authored-By: Claude Opus 5 (1M context) --- mintlify/openapi.yaml | 4 ++++ openapi.yaml | 4 ++++ openapi/components/schemas/cards/CardUpdateRequest.yaml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 2ef39c30f..dc9f3355d 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -27537,6 +27537,10 @@ components: - type: 'null' description: 'Replacement card-specific cap on the number of transactions the card may authorize during one UTC calendar day. Omit this field to leave the current cap unchanged, supply null to clear it, or supply a positive integer to set it. When the platform config also supplies `cardConfigs.maxTransactionsPerDay`, Grid enforces the lower of the two values. Refunds, reversals, and authorization expiries do not restore capacity during the day. Accepted only when the card''s `cardCapabilities.supportsTransactionCountLimit` is true. Cannot be supplied alongside `status: CLOSED`.' example: 20 + dependentRequired: + status: + - substatus + - reason CardRevealResponse: type: object required: diff --git a/openapi.yaml b/openapi.yaml index 2ef39c30f..dc9f3355d 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -27537,6 +27537,10 @@ components: - type: 'null' description: 'Replacement card-specific cap on the number of transactions the card may authorize during one UTC calendar day. Omit this field to leave the current cap unchanged, supply null to clear it, or supply a positive integer to set it. When the platform config also supplies `cardConfigs.maxTransactionsPerDay`, Grid enforces the lower of the two values. Refunds, reversals, and authorization expiries do not restore capacity during the day. Accepted only when the card''s `cardCapabilities.supportsTransactionCountLimit` is true. Cannot be supplied alongside `status: CLOSED`.' example: 20 + dependentRequired: + status: + - substatus + - reason CardRevealResponse: type: object required: diff --git a/openapi/components/schemas/cards/CardUpdateRequest.yaml b/openapi/components/schemas/cards/CardUpdateRequest.yaml index 72ade0699..c6c4cfff0 100644 --- a/openapi/components/schemas/cards/CardUpdateRequest.yaml +++ b/openapi/components/schemas/cards/CardUpdateRequest.yaml @@ -113,3 +113,7 @@ properties: `cardCapabilities.supportsTransactionCountLimit` is true. Cannot be supplied alongside `status: CLOSED`. example: 20 +dependentRequired: + status: + - substatus + - reason