{
  "$id": "https://niklasrosenstein.github.io/gitopsctr/schemas/apis/unit.gitopsctr.io/v1/ViteOciBundle/authored.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "type": "string"
    },
    "apiVersion": {
      "const": "unit.gitopsctr.io/v1"
    },
    "kind": {
      "const": "ViteOciBundle"
    },
    "metadata": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "spec": {
      "additionalProperties": false,
      "properties": {
        "build": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "nodeVersion": {
                  "type": "string"
                }
              },
              "required": [
                "nodeVersion"
              ],
              "title": "ViteBuild",
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "publish": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "credentialProvider": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "type": {
                          "const": "aws-ecr"
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "title": "AwsEcrCredentialProvider",
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "default": null
                },
                "repository": {
                  "type": "string"
                }
              },
              "required": [
                "repository"
              ],
              "title": "VitePublication",
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "source": {
          "additionalProperties": false,
          "properties": {
            "inputs": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Input paths or glob patterns resolved relative to source.path."
            },
            "path": {
              "description": "Repository-relative path resolved from the root of the selected source revision.",
              "type": "string"
            },
            "revision": {
              "anyOf": [
                {
                  "pattern": "^[0-9a-f]{40}$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "description": "Optional exact lowercase Git commit intent. Stack projections inherit the StackTemplate source context when this is omitted."
            }
          },
          "required": [
            "path"
          ],
          "title": "AuthoredSource",
          "type": "object"
        }
      },
      "required": [
        "source"
      ],
      "type": "object"
    }
  },
  "required": [
    "apiVersion",
    "kind",
    "metadata",
    "spec"
  ],
  "title": "ViteOciBundle (unit.gitopsctr.io/v1)",
  "type": "object"
}
