{
  "$id": "https://raw.githubusercontent.com/i2-open/i2scim/master/spec/schema/scim-patchRequest.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Json-Schema for a SCIM Patch Request per RFC7644 Sec 3.5.2",
  "properties": {
    "Operations": {
      "items": {
        "properties": {
          "op": {
            "description": "The type of operation to be performed",
            "enum": [
              "add",
              "remove",
              "replace"
            ]
          },
          "path": {
            "description": "A SCIM path describing the attribute and/or value instance to be modified (See Fig 7 RFC7644)",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "type": "array"
              },
              {
                "type": "string"
              },
              {
                "type": "object"
              },
              {
                "type": "integer"
              },
              {
                "type": "boolean"
              }
            ],
            "description": "A SCIM Patch value which MAY be any JSON value, object, or array"
          }
        },
        "required": [
          "op"
        ]
      },
      "minItems": 1,
      "type": "array"
    },
    "schemas": {
      "items": {
        "enum": [
          "urn:ietf:params:scim:api:messages:2.0:PatchOp"
        ]
      },
      "type": "array"
    }
  },
  "required": [
    "schemas",
    "Operations"
  ],
  "title": "SCIM Patch Request",
  "type": "object"
}