{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-top-file-schema.json",
  "title": "TopFile",
  "description": "The information about the top file requests.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-top-files-api-openapi.yml#/components/schemas/TopFile",
  "type": "object",
  "properties": {
    "requests": {
      "type": "number",
      "description": "The number of requests for the file."
    },
    "sha256": {
      "$ref": "#/$defs/sha256"
    },
    "categories": {
      "$ref": "#/$defs/categories"
    },
    "identitycount": {
      "type": "number",
      "description": "The count of the identities for the entry."
    },
    "filenames": {
      "type": "array",
      "description": "The list of filenames for the entry.",
      "items": {
        "type": "string"
      }
    },
    "filetypes": {
      "type": "array",
      "description": "The list of filetypes for the entry.",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "categories",
    "filenames",
    "filetypes",
    "identitycount",
    "requests",
    "sha256"
  ],
  "$defs": {
    "Category": {
      "type": "object",
      "description": "The properties of the category.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the category."
        },
        "label": {
          "type": "string",
          "description": "The descriptive label for the category."
        },
        "type": {
          "type": "string",
          "description": "The type of the category."
        },
        "integration": {
          "type": "boolean",
          "description": "Specifies whether the category is an integration."
        },
        "deprecated": {
          "type": "boolean",
          "description": "Specifies whether the category is a legacy category."
        }
      }
    },
    "categories": {
      "type": "array",
      "description": "The list of categories.",
      "items": {
        "$ref": "#/$defs/Category"
      }
    },
    "sha256": {
      "type": "string",
      "description": "The SHA256 hash for the entry."
    }
  }
}