{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/capepartners-fr/json-schema/capepartners-fr-submit-response-schema.json",
  "title": "SubmitResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/capepartners-fr-registration-api-openapi.yml#/components/schemas/SubmitResponse",
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string"
    },
    "matches": {
      "type": "integer"
    },
    "match_details": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Match"
      }
    },
    "summary": {
      "type": "string"
    }
  },
  "$defs": {
    "Match": {
      "type": "object",
      "description": "A ranked counterparty match. Names are redacted (Company A/B/C…) and financial fit signals are returned as coarse bands inside `reasons` (strong/moderate/weak/poor) until an NDA is recorded. Full identity and granular metrics unlock only after POST /api/nda/sign.",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string",
          "description": "Redacted name (Company A/B/C…) unless NDA-gated reveal"
        },
        "score": {
          "type": "number",
          "format": "float",
          "description": "Overall fit score (deterministic x semantic)"
        },
        "scores": {
          "type": "object",
          "description": "Per-dimension deterministic sub-scores (revenue/growth/ebitda/deterministic/semantic)"
        },
        "data_quality": {
          "type": "number",
          "format": "float"
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Band-qualified fit reasons, e.g. \"Revenue fit: strong vs range €2M–€50M\" (no raw revenue/growth/EBITDA)"
        }
      }
    }
  }
}