{
  "$id": "https://niklasrosenstein.github.io/gitopsctr/schemas/apis/unit.gitopsctr.io/v1/ViteOciBundle/receipt.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "type": "string"
    },
    "apiVersion": {
      "const": "gitopsctr.io/v1"
    },
    "kind": {
      "const": "Receipt"
    },
    "metadata": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "spec": {
      "additionalProperties": false,
      "properties": {
        "desired": {
          "type": "object"
        },
        "resolvedInputs": {
          "additionalProperties": false,
          "properties": {
            "artifacts": {
              "anyOf": [
                {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            },
            "importedArtifactEvidence": {
              "anyOf": [
                {
                  "additionalProperties": {
                    "type": "object"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            },
            "importedArtifacts": {
              "anyOf": [
                {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            },
            "promotions": {
              "anyOf": [
                {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            },
            "receipts": {
              "anyOf": [
                {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            }
          },
          "type": "object"
        },
        "subject": {
          "additionalProperties": false,
          "properties": {
            "apiVersion": {
              "const": "unit.gitopsctr.io/v1"
            },
            "kind": {
              "const": "ViteOciBundle"
            },
            "name": {
              "minLength": 1,
              "type": "string"
            },
            "qualifiedName": {
              "pattern": "^[a-z0-9][a-z0-9-]*(?:/[a-z0-9][a-z0-9-]*)*$",
              "type": "string"
            }
          },
          "required": [
            "apiVersion",
            "kind",
            "name",
            "qualifiedName"
          ],
          "type": "object"
        }
      },
      "required": [
        "subject",
        "desired"
      ],
      "type": "object"
    },
    "status": {
      "additionalProperties": false,
      "properties": {
        "artifacts": {
          "additionalProperties": false,
          "properties": {
            "frontend": {
              "additionalProperties": false,
              "properties": {
                "apiVersion": {
                  "const": "artifact.gitopsctr.io/v1"
                },
                "digest": {
                  "pattern": "^sha256:[0-9a-f]{64}$",
                  "type": "string"
                },
                "kind": {
                  "const": "FrontendBundle"
                },
                "mediaType": {
                  "enum": [
                    "application/vnd.gitopsctr.frontend-bundle.v1+yaml",
                    "application/vnd.gitopsctr.frontend-bundle.v1+json"
                  ]
                },
                "path": {
                  "type": "string"
                }
              },
              "required": [
                "apiVersion",
                "kind",
                "path",
                "digest",
                "mediaType"
              ],
              "type": "object"
            }
          },
          "required": [
            "frontend"
          ],
          "type": "object"
        },
        "controller": {
          "type": "object"
        },
        "result": {
          "additionalProperties": false,
          "type": "object"
        }
      },
      "required": [
        "controller",
        "result",
        "artifacts"
      ],
      "type": "object"
    }
  },
  "required": [
    "apiVersion",
    "kind",
    "metadata",
    "spec",
    "status"
  ],
  "title": "Receipt for ViteOciBundle",
  "type": "object"
}
