{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/jfrog/main/json-schema/jfrog-release-bundle-v2-schema.json",
  "title": "ReleaseBundleV2",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jfrog-release-bundles-v2-api-openapi.yml#/components/schemas/ReleaseBundleV2",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATED",
        "SIGNED",
        "PROMOTED",
        "DISTRIBUTED"
      ]
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "created_by": {
      "type": "string"
    },
    "source_type": {
      "type": "string"
    },
    "artifacts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          }
        }
      }
    },
    "current_environment": {
      "type": "string"
    },
    "promotion_history": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "environment": {
            "type": "string"
          },
          "promoted_at": {
            "type": "string",
            "format": "date-time"
          },
          "promoted_by": {
            "type": "string"
          }
        }
      }
    }
  }
}