{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/helm/json-schema/helm-chart-version-schema.json",
  "title": "ChartVersion",
  "description": "Metadata describing a specific version of a Helm chart as it appears in the repository index.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/helm-chartmuseum-api-openapi.yml#/components/schemas/ChartVersion",
  "type": "object",
  "required": [
    "apiVersion",
    "name",
    "version"
  ],
  "properties": {
    "apiVersion": {
      "type": "string",
      "description": "The chart API version (v1 for Helm 2, v2 for Helm 3).",
      "enum": [
        "v1",
        "v2"
      ]
    },
    "name": {
      "type": "string",
      "description": "The name of the chart."
    },
    "version": {
      "type": "string",
      "description": "The SemVer 2 version of the chart."
    },
    "kubeVersion": {
      "type": "string",
      "description": "A SemVer range of compatible Kubernetes versions."
    },
    "description": {
      "type": "string",
      "description": "A single-sentence description of the chart."
    },
    "type": {
      "type": "string",
      "description": "The type of chart — application for installable charts, library for utility charts.",
      "enum": [
        "application",
        "library"
      ],
      "default": "application"
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Keywords associated with the chart for search and categorization."
    },
    "home": {
      "type": "string",
      "format": "uri",
      "description": "The URL of the project home page."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "URLs to source code for the chart."
    },
    "maintainers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Maintainer"
      },
      "description": "List of chart maintainers."
    },
    "icon": {
      "type": "string",
      "format": "uri",
      "description": "URL to an SVG or PNG icon for the chart."
    },
    "appVersion": {
      "type": "string",
      "description": "The version of the application contained in the chart."
    },
    "deprecated": {
      "type": "boolean",
      "description": "Whether this chart version is deprecated.",
      "default": false
    },
    "annotations": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Annotations are key-value pairs used by Artifact Hub and other tools for additional metadata."
    },
    "urls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "Download URLs for the chart package."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when this version was added to the index."
    },
    "digest": {
      "type": "string",
      "description": "SHA-256 digest of the chart package for integrity verification."
    },
    "dependencies": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Dependency"
      },
      "description": "List of chart dependencies declared in Chart.yaml."
    }
  },
  "$defs": {
    "Dependency": {
      "type": "object",
      "description": "A chart dependency specifying another chart required by this chart.",
      "required": [
        "name",
        "version"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the dependency chart."
        },
        "version": {
          "type": "string",
          "description": "The SemVer range for the dependency version."
        },
        "repository": {
          "type": "string",
          "format": "uri",
          "description": "The URL of the chart repository where the dependency is hosted."
        },
        "condition": {
          "type": "string",
          "description": "A YAML path that resolves to a boolean to enable or disable the dependency."
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Tags used to group dependencies for enable/disable."
        },
        "alias": {
          "type": "string",
          "description": "Alias name for the dependency chart."
        }
      }
    },
    "Maintainer": {
      "type": "object",
      "description": "Contact information for a chart maintainer.",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The maintainer name."
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "The maintainer email address."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The maintainer URL."
        }
      }
    }
  }
}