{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/eliq/main/json-schema/eliq-patch-document-schema.json",
  "title": "PatchDocument",
  "description": "Patch document used in patch operations",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eliq-home-profile-api-openapi.yml#/components/schemas/PatchDocument",
  "type": "array",
  "minItems": 1,
  "uniqueItems": true,
  "items": {
    "type": "object",
    "properties": {
      "op": {
        "type": "string",
        "minLength": 1,
        "enum": [
          "add",
          "replace",
          "remove"
        ],
        "description": "Operation to execute"
      },
      "path": {
        "type": "string",
        "minLength": 1,
        "description": "Path to property to update"
      },
      "value": {
        "type": [
          "string",
          "number"
        ],
        "minLength": 1,
        "description": "Value to set"
      }
    },
    "required": [
      "op",
      "path",
      "value"
    ]
  }
}