{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/capepartners-fr/json-schema/capepartners-fr-phase-request-decision-response-schema.json",
  "title": "PhaseRequestDecisionResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/capepartners-fr-pairings-api-openapi.yml#/components/schemas/PhaseRequestDecisionResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "decision": {
      "type": "string",
      "enum": [
        "confirm",
        "dismiss",
        "cancel"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "confirmed",
        "dismissed",
        "cancelled",
        "expired"
      ]
    },
    "pair_id": {
      "type": "string"
    },
    "phase": {
      "type": "string",
      "description": "The pairing phase after the decision (unchanged for dismiss/cancel/expired)."
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "expired",
        "already_resolved",
        null
      ],
      "description": "'expired' when the request lapsed unanswered instead of being decided."
    }
  }
}