{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opencapital-sh/json-schema/opencapital-sh-business-profile-schema.json",
  "title": "BusinessProfile",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opencapital-sh-openapi.json#/components/schemas/BusinessProfile",
  "type": "object",
  "properties": {
    "cik": {
      "type": "string",
      "pattern": "^\\d{10}$"
    },
    "ticker": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "companyName": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "accessionNumber": {
      "type": "string"
    },
    "formType": {
      "type": "string"
    },
    "filedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "periodOfReport": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        {
          "type": "null"
        }
      ]
    },
    "overview": {
      "type": "string"
    },
    "segments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "segmentId": {
            "description": "Persisted segment identity when present; older profiles may predate segment IDs.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "products": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "customerTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "revenueSignificance": {
            "type": "string",
            "enum": [
              "primary",
              "major",
              "moderate",
              "minor"
            ]
          }
        },
        "required": [
          "name",
          "description",
          "products",
          "customerTypes",
          "revenueSignificance"
        ],
        "additionalProperties": false
      }
    },
    "tags": {
      "type": "object",
      "properties": {
        "sector": {
          "type": "string"
        },
        "industries": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "businessModels": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "customerSegments": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "geographies": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "competitivePosition": {
          "type": "string"
        }
      },
      "required": [
        "sector",
        "industries",
        "businessModels",
        "customerSegments",
        "geographies",
        "competitivePosition"
      ],
      "additionalProperties": false
    },
    "valueChain": {
      "type": "object",
      "properties": {
        "upstreamDependencies": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "downstreamCustomers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "upstreamDependencies",
        "downstreamCustomers"
      ],
      "additionalProperties": false
    },
    "partnerships": {
      "type": "object",
      "properties": {
        "companies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "ticker": {
                "type": "string"
              },
              "context": {
                "type": "string"
              },
              "mentionedInFiling": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "ticker",
              "context",
              "mentionedInFiling"
            ],
            "additionalProperties": false
          }
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "companies",
        "categories"
      ],
      "additionalProperties": false
    },
    "subsidiaries": {
      "type": "object",
      "properties": {
        "companies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "ticker": {
                "type": "string"
              },
              "context": {
                "type": "string"
              },
              "mentionedInFiling": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "ticker",
              "context",
              "mentionedInFiling"
            ],
            "additionalProperties": false
          }
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "companies",
        "categories"
      ],
      "additionalProperties": false
    },
    "competition": {
      "type": "object",
      "properties": {
        "companies": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "ticker": {
                "type": "string"
              },
              "context": {
                "type": "string"
              },
              "mentionedInFiling": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "ticker",
              "context",
              "mentionedInFiling"
            ],
            "additionalProperties": false
          }
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "companies",
        "categories"
      ],
      "additionalProperties": false
    },
    "model": {
      "type": "string"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    }
  },
  "required": [
    "cik",
    "ticker",
    "companyName",
    "accessionNumber",
    "formType",
    "filedAt",
    "periodOfReport",
    "overview",
    "segments",
    "tags",
    "valueChain",
    "partnerships",
    "competition",
    "model",
    "generatedAt"
  ],
  "additionalProperties": false
}