{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/jfrog/main/json-schema/jfrog-release-bundle-v2-request-schema.json",
  "title": "ReleaseBundleV2Request",
  "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/ReleaseBundleV2Request",
  "type": "object",
  "properties": {
    "release_bundle_name": {
      "type": "string"
    },
    "release_bundle_version": {
      "type": "string"
    },
    "skip_docker_manifest_resolution": {
      "type": "boolean",
      "default": false
    },
    "source_type": {
      "type": "string",
      "enum": [
        "artifacts",
        "builds",
        "release_bundles",
        "aql"
      ]
    },
    "source": {
      "type": "object",
      "properties": {
        "artifacts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              }
            }
          }
        },
        "builds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "number": {
                "type": "string"
              },
              "project": {
                "type": "string"
              }
            }
          }
        },
        "release_bundles": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              },
              "project_key": {
                "type": "string"
              }
            }
          }
        },
        "aql": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "release_bundle_name",
    "release_bundle_version",
    "source_type",
    "source"
  ]
}