{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/companydata-dk/json-schema/companydata-dk-auditor-profile-schema.json",
  "title": "AuditorProfile",
  "description": "Audit firm profile: portfolio facts derived from CVR registrations\nand clients' published annual reports. Factual counts only.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/companydata-dk-openapi.yml#/components/schemas/AuditorProfile",
  "properties": {
    "cvr": {
      "type": "string",
      "title": "Cvr"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name",
      "description": "Audit firm name"
    },
    "client_count": {
      "type": "integer",
      "title": "Client Count",
      "description": "Active companies with this firm as registered auditor"
    },
    "industries": {
      "items": {
        "$ref": "#/$defs/AuditorIndustryBucket"
      },
      "type": "array",
      "title": "Industries",
      "description": "Top client industries (DB07 divisions)"
    },
    "clients_with_signals": {
      "type": "integer",
      "title": "Clients With Signals",
      "description": "Clients with computed financial reporting signals",
      "default": 0
    },
    "clients_late_filings": {
      "type": "integer",
      "title": "Clients Late Filings",
      "description": "Clients with at least one late filing among their last 5 annual reports",
      "default": 0
    },
    "clients_going_concern": {
      "type": "integer",
      "title": "Clients Going Concern",
      "description": "Clients whose latest report carries a going concern emphasis",
      "default": 0
    },
    "clients_overdue_filing": {
      "type": "integer",
      "title": "Clients Overdue Filing",
      "description": "Active clients whose next expected report is past its statutory deadline",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "cvr",
    "client_count"
  ],
  "$defs": {
    "AuditorIndustryBucket": {
      "properties": {
        "code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Code",
          "description": "DB07 division (2-digit)"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        }
      },
      "type": "object",
      "required": [
        "count"
      ],
      "title": "AuditorIndustryBucket"
    }
  }
}