{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/1password/json-schema/1password-scim-patch-schema.json",
  "title": "ScimPatch",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/1password-scim-api-openapi.yml#/components/schemas/ScimPatch",
  "type": "object",
  "properties": {
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "Operations": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ScimPatchOp"
      }
    },
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The service-provider-assigned SCIM resource ID. Server-controlled; ignored on requests.",
      "readOnly": true
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ],
      "description": "An identifier for the resource as defined by the provisioning client."
    },
    "meta": {
      "allOf": [
        {
          "$ref": "#/$defs/ScimResourceTypeMetadata"
        }
      ],
      "description": "Resource metadata (created/last-modified timestamps, resource type, location). Server-controlled; ignored on requests.",
      "readOnly": true
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ScimPatchOp": {
      "type": "object",
      "properties": {
        "op": {
          "enum": [
            "add",
            "remove",
            "replace"
          ],
          "type": [
            "string",
            "null"
          ],
          "description": "The patch operation."
        },
        "path": {
          "type": [
            "string",
            "null"
          ]
        },
        "value": {}
      },
      "additionalProperties": false
    },
    "ScimResourceTypeMetadata": {
      "type": "object",
      "properties": {
        "created": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "lastModified": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "resourceType": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}