{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/security-scorecard/json-schema/security-scorecard-company-active-issues-response-schema-schema.json",
  "title": "CompanyActiveIssuesResponseSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/security-scorecard-issues-api-openapi.yml#/components/schemas/CompanyActiveIssuesResponseSchema",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "issue_types": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "a scorecard tag",
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "issue type (permanent key)",
            "type": "string"
          },
          "issues": {
            "type": "array",
            "description": "list of active issues of this type on this company",
            "items": {
              "type": "object",
              "properties": {
                "issue_id": {
                  "type": "string",
                  "description": "issue id"
                },
                "issue_count": {
                  "type": "number",
                  "description": "total number of findings of this issue on this company"
                },
                "domain": {
                  "type": "string"
                },
                "last_seen_time": {
                  "type": "string",
                  "description": "last seen time of this issue"
                },
                "first_seen_time": {
                  "type": "string",
                  "description": "first seen time of this issue"
                },
                "group_status": {
                  "type": "string",
                  "description": "group status of this issue"
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "scheme": {
                  "type": "string"
                },
                "analysis": {
                  "type": "string"
                },
                "observations": {
                  "type": "array",
                  "description": "array of observations. its structure depends on the issue type",
                  "items": {}
                }
              }
            }
          },
          "issues_count": {
            "type": "integer",
            "description": "total active issues of this type on this company"
          }
        },
        "required": [
          "name",
          "issues",
          "issues_count"
        ]
      }
    },
    "total_active_issues": {
      "type": "integer",
      "description": "total number of active issues"
    }
  },
  "required": [
    "issue_types",
    "total_active_issues"
  ]
}