{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PatchDocument",
  "title": "PatchDocument",
  "required": [
    "op",
    "path"
  ],
  "type": "object",
  "properties": {
    "op": {
      "type": "string",
      "description": "The operation to be performed ",
      "example": "update",
      "enum": [
        "add",
        "update",
        "remove"
      ]
    },
    "path": {
      "type": "string",
      "description": "A JSON-Pointer",
      "example": "/name"
    },
    "value": {
      "type": "string",
      "description": "The value to be used within the operations.",
      "example": "test"
    }
  },
  "description": "A JSONPatch document as defined by RFC 6902"
}