{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/security-scorecard/json-schema/security-scorecard-domain-assets-response-schema-schema.json",
  "title": "DomainAssetsResponseSchema",
  "description": "Schema for domain assets and associated metadata",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/security-scorecard-ip-domain-tags-api-openapi.yml#/components/schemas/DomainAssetsResponseSchema",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "domain": {
            "type": "string",
            "description": "domain asset"
          },
          "status": {
            "type": "string",
            "enum": [
              "CLAIMED",
              "ATTRIBUTED",
              "REFUTED",
              "UNDER_REVIEW_ADD",
              "UNDER_REVIEW_REMOVE"
            ],
            "description": "status of asset"
          },
          "issues": {
            "type": "number",
            "description": "number of issue types associated with the asset"
          },
          "findings": {
            "type": "number",
            "description": "number of findings associated with the asset"
          },
          "score_impact": {
            "type": "number",
            "description": "sum impact of issue findings associated with the asset"
          },
          "age": {
            "type": "number",
            "description": "how long the asset has been attributed"
          },
          "domain_type": {
            "type": "string",
            "enum": [
              "SUBDOMAIN",
              "PARENT DOMAIN"
            ],
            "description": "type of domain"
          },
          "ips_count": {
            "type": "number",
            "description": "count of associated ips"
          },
          "sources_metadata": {
            "type": "array",
            "description": "metadata for data sources",
            "items": {}
          },
          "first_observed_at": {
            "type": "string",
            "description": "date of the first attribution"
          },
          "criticality": {
            "type": "string",
            "description": "criticality of the domain asset"
          },
          "tags": {
            "type": "array",
            "description": "associated tags",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "description": "tag id"
                },
                "tag": {
                  "type": "string",
                  "description": "tag name"
                }
              }
            },
            "minItems": 0
          },
          "public_tags": {
            "type": "array",
            "description": "associated public tags",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "description": "tag id"
                },
                "tag": {
                  "type": "string",
                  "description": "tag name"
                }
              }
            },
            "minItems": 0
          },
          "evidence_sources": {
            "type": "array",
            "description": "data sources used to associate the asset to footprint",
            "items": {
              "type": "string"
            }
          },
          "asset_categories": {
            "type": "array",
            "description": "asset category list",
            "items": {
              "type": "string"
            }
          },
          "assignees": {
            "type": "object",
            "properties": {
              "user": {
                "type": "string",
                "description": "user"
              },
              "team": {
                "type": "string",
                "description": "team"
              }
            }
          },
          "sources": {
            "type": "array",
            "description": "data sources used to associate the asset to footprint",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "description": "source id"
                },
                "name": {
                  "type": "string",
                  "description": "source name"
                }
              }
            },
            "minItems": 0
          }
        },
        "required": [
          "domain",
          "status",
          "domain_type",
          "ips_count",
          "first_observed_at",
          "criticality"
        ]
      }
    },
    "size": {
      "type": "number"
    }
  },
  "required": [
    "entries",
    "size"
  ]
}