{
    "$id": "https://schema.giantswarm.io/image/v0.0.1",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "title": "Schema for container images",
    "description": "Useful for specifying a container image to use in a helm chart context.",
    "required": [
        "name"
    ],
    "properties": {
        "name": {
            "type": "string",
            "title": "Name",
            "description": "Image name, optionally prefixed by a namespace and a separator, excluding tag.",
            "examples": [
                "redis",
                "giantswarm/happa"
            ]
        },
        "pullPolicy": {
            "type": "string",
            "enum": [
                "Always",
                "IfNotPresent",
                "Never"
            ]
        },
        "registry": {
            "type": "string",
            "title": "Registry",
            "description": "Name of the server to access the image from.",
            "examples": [
                "quay.io",
                "hub.docker.com"
            ]
        },
        "tag": {
            "type": "string",
            "title": "Tag",
            "description": "Specifies the version of the image, without colon.",
            "examples": [
                "latest",
                "v4.1.2-alpine"
            ]
        }
    }
}
