{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://winregistry.org/schemas/batch-v1.json",
  "title": "regx atomic batch manifest v1",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "schemaVersion", "operations"],
  "properties": {
    "schema": {
      "const": "https://winregistry.org/schemas/batch-v1.json"
    },
    "schemaVersion": {
      "const": 1
    },
    "operations": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["id", "keys"],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "keys": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "required": ["path"],
              "properties": {
                "path": {
                  "type": "string",
                  "minLength": 1
                },
                "delete": {
                  "type": "boolean"
                },
                "values": {
                  "type": "array"
                }
              }
            }
          }
        }
      }
    }
  }
}
