{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dealroom/json-schema/dealroom-fund-detail-response-schema.json",
  "title": "FundDetailResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dealroom-funds-api-openapi.yml#/components/schemas/FundDetailResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/Fund"
    },
    "currency": {
      "type": "string",
      "description": "Requested response currency (default USD) — the currency `amount` is expressed in. The original native value is in `amount_source`."
    }
  },
  "required": [
    "data",
    "currency"
  ],
  "$defs": {
    "EntityRef": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string",
          "description": "Stable UUID of the entity."
        },
        "type": {
          "$ref": "#/$defs/EntityType"
        },
        "subtype": {
          "anyOf": [
            {
              "$ref": "#/$defs/OrganizationSubtype"
            },
            {
              "type": "null"
            }
          ],
          "description": "Organization subtype; always null for a person."
        },
        "name": {
          "type": "string",
          "description": "Display name."
        },
        "image": {
          "type": [
            "string",
            "null"
          ],
          "description": "Absolute image URL; null when none."
        },
        "dealroom_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Canonical profile URL on app.dealroom.co."
        }
      },
      "required": [
        "uuid",
        "type",
        "subtype",
        "name",
        "image",
        "dealroom_url"
      ],
      "description": "The identity of an entity embedded in another entity's response. Closed: richer detail lives on the sub-resource, where tier redaction can reach it."
    },
    "EntityType": {
      "type": "string",
      "enum": [
        "organization",
        "person"
      ],
      "description": "Top-level entity type: `organization` or `person`."
    },
    "Fund": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number",
          "description": "Stable Dealroom fund id (source `bobjects_funds.id`)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Fund name as reported."
        },
        "fund_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Fund category — one of `Venture Capital`, `Private Equity`, `Growth Equity`, `Corporate`, `Life Sciences`, `Renewables`, `Fund of Funds`, `Other`."
        },
        "amount": {
          "type": [
            "number",
            "null"
          ],
          "description": "Fund size in the requested response `currency` (the top-level envelope `currency`, default USD), converted from the native amount. Null when the source amount is unknown or its native currency has no exchange rate."
        },
        "amount_source": {
          "$ref": "#/$defs/FundAmountSource"
        },
        "announced_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date",
          "description": "Day the fund was announced."
        },
        "is_closed": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Whether the fund is closed to new commitments."
        },
        "source_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "External news / press URL announcing the fund."
        },
        "manager": {
          "$ref": "#/$defs/EntityRef"
        }
      },
      "required": [
        "id",
        "name",
        "fund_type",
        "amount",
        "amount_source",
        "announced_date",
        "is_closed",
        "source_url",
        "manager"
      ]
    },
    "FundAmountSource": {
      "type": "object",
      "properties": {
        "amount": {
          "type": [
            "number",
            "null"
          ],
          "description": "Fund size as stored, in the fund's own native currency."
        },
        "currency": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 4217 code of the fund's native currency."
        }
      },
      "required": [
        "amount",
        "currency"
      ],
      "description": "The original as-stored fund size and its native currency, before conversion."
    },
    "OrganizationSubtype": {
      "type": "string",
      "enum": [
        "company",
        "university",
        "gov_ngo",
        "investor"
      ],
      "description": "The kind of organization: company, university, gov_ngo or investor."
    }
  }
}