{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/capepartners-fr/json-schema/capepartners-fr-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/capepartners-fr-search-api-openapi.yml#/components/schemas/SearchResponse",
  "type": "object",
  "properties": {
    "sellers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SearchSeller"
      }
    },
    "buyers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SearchBuyer"
      }
    },
    "total": {
      "type": "integer"
    },
    "query": {
      "type": "string"
    }
  },
  "$defs": {
    "SearchBuyer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "sector": {
          "type": "string"
        },
        "ticket_min": {
          "type": "number"
        },
        "ticket_max": {
          "type": "number"
        },
        "contact": {
          "type": "string"
        },
        "contact_email": {
          "type": "string"
        },
        "paired": {
          "type": "boolean"
        }
      }
    },
    "SearchSeller": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "sector": {
          "type": "string"
        },
        "revenue": {
          "type": "number"
        },
        "ebitda": {
          "type": "number"
        },
        "product": {
          "type": "string"
        },
        "contact_name": {
          "type": "string"
        },
        "contact_email": {
          "type": "string"
        },
        "paired": {
          "type": "boolean",
          "description": "Pairing already exists relative to this requesting session"
        }
      }
    }
  }
}