{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://redbook.fun/specification/1.0/schemas/policy-resolver.schema.json",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1
    },
    "clauses": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "op": {
            "enum": [
              "input",
              "wallOfPlacement",
              "conversationOfMessage",
              "mailboxOfEntry",
              "contextOfInvitation",
              "resourceOfReservation",
              "ownerOfNeocortex",
              "ownerOfSoma",
              "ownerOfConcept"
            ]
          },
          "path": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          }
        },
        "required": [
          "op",
          "path"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 64
    }
  },
  "required": [
    "id",
    "clauses"
  ],
  "additionalProperties": false
}
