From fc99073bd009ae8a47616adcdd7671758b5ce09a Mon Sep 17 00:00:00 2001 From: Pantheon Date: Thu, 28 May 2026 12:44:26 -0700 Subject: [PATCH] fix(cards): use anyOf for nullable Card.stateReason The stateReason oneOf is a nullability wrapper (CardStateReason enum or null), not a discriminated union, so it can't carry a discriminator. Switch to anyOf, the standard OpenAPI 3.1 idiom for nullable refs. Co-Authored-By: Claude Opus 4.8 (1M context) --- mintlify/openapi.yaml | 2 +- openapi.yaml | 2 +- openapi/components/schemas/cards/Card.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 782654f8..28683e26 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -18096,7 +18096,7 @@ components: state: $ref: '#/components/schemas/CardState' stateReason: - oneOf: + anyOf: - $ref: '#/components/schemas/CardStateReason' - type: 'null' description: Reason associated with the current `state`. Populated when the card is `CLOSED` or when provisioning was rejected; otherwise null. diff --git a/openapi.yaml b/openapi.yaml index 782654f8..28683e26 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -18096,7 +18096,7 @@ components: state: $ref: '#/components/schemas/CardState' stateReason: - oneOf: + anyOf: - $ref: '#/components/schemas/CardStateReason' - type: 'null' description: Reason associated with the current `state`. Populated when the card is `CLOSED` or when provisioning was rejected; otherwise null. diff --git a/openapi/components/schemas/cards/Card.yaml b/openapi/components/schemas/cards/Card.yaml index 8a096a62..46f1c614 100644 --- a/openapi/components/schemas/cards/Card.yaml +++ b/openapi/components/schemas/cards/Card.yaml @@ -26,7 +26,7 @@ properties: state: $ref: ./CardState.yaml stateReason: - oneOf: + anyOf: - $ref: ./CardStateReason.yaml - type: 'null' description: >-