{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-artifact-schema.json",
  "title": "Artifact",
  "description": "Base serializer for use with :class:`pulpcore.app.models.Model`\n\nThis ensures that all Serializers provide values for the 'pulp_href` field.\n\nThe class provides a default for the ``ref_name`` attribute in the\nModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions\nof plugins are namespaced properly.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-artifacts-api-openapi.yml#/components/schemas/Artifact",
  "type": "object",
  "properties": {
    "file": {
      "type": "string",
      "format": "binary",
      "description": "The stored file."
    },
    "size": {
      "type": "integer",
      "format": "int64",
      "description": "The size of the file in bytes."
    },
    "md5": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "The MD5 checksum of the file if available."
    },
    "sha1": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "The SHA-1 checksum of the file if available."
    },
    "sha224": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "The SHA-224 checksum of the file if available."
    },
    "sha256": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "The SHA-256 checksum of the file if available."
    },
    "sha384": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "The SHA-384 checksum of the file if available."
    },
    "sha512": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "description": "The SHA-512 checksum of the file if available."
    }
  },
  "required": [
    "file"
  ]
}