{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-metadata-jsonpatch-schema.json",
  "title": "MetadataJSONPatch",
  "description": "JSON Patch defines a JSON document structure for expressing a\nsequence of operations to apply to a JavaScript Object Notation\n(JSON) document; it is suitable for use with the HTTP PATCH method.\nThe `application/json-patch+json` media type is used to identify such\npatch documents.\n\nFor more details check [RFC 6902](https://www.rfc-editor.org/rfc/rfc6902).\n\nThe number of operations in a single request is capped at 1000 (`maxItems`); requests\nexceeding the cap are rejected with `400 Bad Request`.\n",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-aem-assets-author-openapi.yml#/components/schemas/MetadataJSONPatch",
  "type": "array",
  "maxItems": 1000,
  "items": {
    "$ref": "#/$defs/MetadataJSONPatchOperation"
  },
  "$defs": {
    "MetadataJSONPatchOperation": {
      "type": "object",
      "description": "Base schema for a JSON Patch operation",
      "properties": {
        "op": {
          "$ref": "#/$defs/MetadataJSONPatchOperationType"
        }
      },
      "required": [
        "op"
      ]
    },
    "MetadataJSONPatchOperationType": {
      "type": "string",
      "description": "The operation to perform.",
      "enum": [
        "add",
        "copy",
        "move",
        "remove",
        "replace",
        "test"
      ]
    }
  }
}