{
  "$id": "https://schemas.ump.dev/v1/approval.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "acknowledged_fallbacks": {
      "description": "Fallback codes acknowledged.",
      "items": {
        "type": "string"
      },
      "title": "Acknowledged Fallbacks",
      "type": "array"
    },
    "approver": {
      "title": "Approver",
      "type": "string"
    },
    "artifact_id": {
      "title": "Artifact Id",
      "type": "string"
    },
    "artifact_version": {
      "title": "Artifact Version",
      "type": "integer"
    },
    "at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "At"
    },
    "comment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Comment"
    },
    "decision": {
      "default": "approve",
      "enum": [
        "approve",
        "reject"
      ],
      "title": "Decision",
      "type": "string"
    },
    "key_version": {
      "title": "Key Version",
      "type": "string"
    },
    "payload_digest": {
      "title": "Payload Digest",
      "type": "string"
    },
    "signature": {
      "title": "Signature",
      "type": "string"
    },
    "submitter": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Submitter"
    }
  },
  "required": [
    "artifact_id",
    "artifact_version",
    "approver",
    "payload_digest",
    "signature",
    "key_version"
  ],
  "title": "Approval",
  "type": "object"
}
