{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://paulkov.github.io/dpone/schemas/gitops/safe-sample-runtime-evidence-write.schema.json",
  "title": "dpone GitOps safe sample runtime evidence write report",
  "type": "object",
  "required": [
    "schema",
    "path",
    "sha256",
    "bytes",
    "release_id",
    "deployment_id"
  ],
  "additionalProperties": false,
  "properties": {
    "schema": {
      "const": "dpone.safe-sample-runtime-evidence-write.v1"
    },
    "path": {
      "type": "string",
      "minLength": 1
    },
    "sha256": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    },
    "bytes": {
      "type": "integer",
      "minimum": 1
    },
    "release_id": {
      "anyOf": [
        {
          "$ref": "#/$defs/sha256"
        },
        {
          "type": "null"
        }
      ]
    },
    "deployment_id": {
      "anyOf": [
        {
          "$ref": "#/$defs/sha256"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "sha256": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    }
  }
}
