{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aboutcode/json-schema/aboutcode-paginated-resource-apilist-schema.json",
  "title": "PaginatedResourceAPIList",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aboutcode-purldb-openapi.yml#/components/schemas/PaginatedResourceAPIList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourceAPI"
      }
    }
  },
  "$defs": {
    "ResourceAPI": {
      "type": "object",
      "properties": {
        "package": {
          "type": "string",
          "format": "uri",
          "readOnly": true
        },
        "purl": {
          "type": "string"
        },
        "path": {
          "type": "string",
          "readOnly": true,
          "description": "The full path value of a resource (file or directory) in the archive it is from."
        },
        "type": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "readOnly": true,
          "description": "File or directory name of this resource with its extension."
        },
        "extension": {
          "type": "string",
          "readOnly": true,
          "description": "File extension for this resource (directories do not have an extension)."
        },
        "size": {
          "type": [
            "integer",
            "null"
          ],
          "readOnly": true,
          "description": "Size in bytes."
        },
        "md5": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "MD5 checksum hex-encoded, as in md5sum."
        },
        "sha1": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "SHA1 checksum hex-encoded, as in sha1sum."
        },
        "sha256": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "SHA256 checksum hex-encoded, as in sha256sum."
        },
        "sha512": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "SHA512 checksum hex-encoded, as in sha512sum."
        },
        "git_sha1": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "git SHA1 checksum hex-encoded"
        },
        "mime_type": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "MIME type (aka. media type) for this resource. See https://en.wikipedia.org/wiki/Media_type"
        },
        "file_type": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Descriptive file type for this resource."
        },
        "programming_language": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true,
          "description": "Programming language of this resource if this is a code file."
        },
        "is_binary": {
          "type": "boolean",
          "readOnly": true
        },
        "is_text": {
          "type": "boolean",
          "readOnly": true
        },
        "is_archive": {
          "type": "boolean",
          "readOnly": true
        },
        "is_media": {
          "type": "boolean",
          "readOnly": true
        },
        "is_key_file": {
          "type": "boolean",
          "readOnly": true
        },
        "detected_license_expression": {
          "type": "string",
          "readOnly": true,
          "description": "TODO"
        },
        "detected_license_expression_spdx": {
          "type": "string",
          "readOnly": true,
          "description": "TODO"
        },
        "license_detections": {
          "readOnly": true,
          "description": "List of license detection details."
        },
        "license_clues": {
          "readOnly": true,
          "description": "List of license clues."
        },
        "percentage_of_license_text": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "readOnly": true,
          "description": "TODO"
        },
        "copyrights": {
          "readOnly": true,
          "description": "List of detected copyright statements (and related detection details)."
        },
        "holders": {
          "readOnly": true,
          "description": "List of detected copyright holders (and related detection details)."
        },
        "authors": {
          "readOnly": true,
          "description": "List of detected authors (and related detection details)."
        },
        "package_data": {
          "readOnly": true,
          "description": "List of Package data detected from this CodebaseResource"
        },
        "emails": {
          "readOnly": true,
          "description": "List of detected emails (and related detection details)."
        },
        "urls": {
          "readOnly": true,
          "description": "List of detected URLs (and related detection details)."
        },
        "extra_data": {
          "readOnly": true,
          "description": "Optional mapping of extra data key/values."
        }
      },
      "required": [
        "authors",
        "copyrights",
        "detected_license_expression",
        "detected_license_expression_spdx",
        "emails",
        "extension",
        "extra_data",
        "file_type",
        "git_sha1",
        "holders",
        "is_archive",
        "is_binary",
        "is_key_file",
        "is_media",
        "is_text",
        "license_clues",
        "license_detections",
        "md5",
        "mime_type",
        "name",
        "package",
        "package_data",
        "path",
        "percentage_of_license_text",
        "programming_language",
        "purl",
        "sha1",
        "sha256",
        "sha512",
        "size",
        "type",
        "urls"
      ]
    }
  }
}