{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talend/json-schema/talend-patch-request-schema.json",
  "title": "PatchRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talend-scim-2-0-group-management-api-openapi.yml#/components/schemas/PatchRequest",
  "type": "object",
  "required": [
    "Operations"
  ],
  "properties": {
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "id": {
      "type": "string"
    },
    "externalId": {
      "type": "string"
    },
    "Operations": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/AddOperation"
          },
          {
            "$ref": "#/$defs/RemoveOperation"
          },
          {
            "$ref": "#/$defs/ReplaceOperation"
          }
        ]
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "x-talend": {
    "section": "Common"
  },
  "$defs": {
    "AddOperation": {
      "allOf": [
        {
          "$ref": "#/$defs/PatchOperation"
        },
        {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "#/$defs/JsonNode"
            }
          }
        }
      ],
      "x-talend": {
        "section": "Common"
      }
    },
    "JsonNode": {
      "type": "object",
      "x-talend": {
        "section": "Common"
      }
    },
    "Meta": {
      "type": "object",
      "properties": {
        "resourceType": {
          "type": "string"
        },
        "created": {
          "type": "string",
          "format": "date-time"
        },
        "lastModified": {
          "type": "string",
          "format": "date-time"
        },
        "location": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "x-talend": {
        "section": "Common"
      }
    },
    "PatchOperation": {
      "type": "object",
      "required": [
        "op"
      ],
      "properties": {
        "path": {
          "type": "string"
        },
        "op": {
          "type": "string"
        }
      },
      "x-talend": {
        "section": "Common"
      }
    },
    "RemoveOperation": {
      "allOf": [
        {
          "$ref": "#/$defs/PatchOperation"
        },
        {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "#/$defs/JsonNode"
            }
          }
        }
      ],
      "x-talend": {
        "section": "Common"
      }
    },
    "ReplaceOperation": {
      "allOf": [
        {
          "$ref": "#/$defs/PatchOperation"
        },
        {
          "type": "object",
          "properties": {
            "value": {
              "$ref": "#/$defs/JsonNode"
            }
          }
        }
      ],
      "x-talend": {
        "section": "Common"
      }
    }
  }
}