{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://paulkov.github.io/dpone/schemas/gitops/extension-check-receipt.schema.json",
  "title": "dpone GitOps extension check receipt",
  "type": "object",
  "required": [
    "schema",
    "check",
    "subject_digest",
    "status",
    "producer",
    "command"
  ],
  "additionalProperties": false,
  "properties": {
    "schema": {
      "const": "dpone.extension-check-receipt.v1"
    },
    "check": {
      "type": "string",
      "minLength": 1
    },
    "subject_digest": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    },
    "status": {
      "enum": [
        "PASS",
        "FAIL",
        "UNVERIFIED",
        "SKIP",
        "N/A"
      ]
    },
    "producer": {
      "type": "string",
      "minLength": 1
    },
    "command": {
      "type": "string",
      "minLength": 1
    },
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  }
}
