{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "project ID from create/list."
    },
    "domain": {
      "type": "string",
      "minLength": 3,
      "maxLength": 300,
      "description": "Project domain name, for example example.com."
    },
    "decision": {
      "type": "string",
      "enum": [
        "reject",
        "restore"
      ]
    },
    "expectedRevision": {
      "description": "Previously read revision; mismatches reject concurrent updates.",
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740990
        },
        {
          "type": "null"
        }
      ]
    },
    "expectedSnapshot": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "reason": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    }
  },
  "required": [
    "projectId",
    "domain",
    "decision"
  ],
  "additionalProperties": false
}
