{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vela-partners/json-schema/vela-partners-portfolio-response-schema.json",
  "title": "PortfolioResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vela-partners-openapi.json#/components/schemas/PortfolioResponse",
  "type": "object",
  "required": [
    "summary",
    "company_count",
    "buckets",
    "exits"
  ],
  "properties": {
    "summary": {
      "type": "string"
    },
    "company_count": {
      "type": "integer"
    },
    "buckets": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "key",
          "name",
          "description",
          "companies"
        ],
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/PortfolioCompany"
            }
          }
        }
      }
    },
    "exits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string"
          },
          "acquired_by": {
            "type": "string"
          }
        }
      }
    }
  },
  "$defs": {
    "PortfolioCompany": {
      "type": "object",
      "required": [
        "name",
        "url",
        "description"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "description": {
          "type": "string"
        },
        "acquired_by": {
          "type": "string",
          "description": "Present only where the company has exited."
        }
      }
    }
  }
}