{ "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { "path": { "description": "A JSON Pointer path.", "pattern": "^#?(|(/([^/~]|~[01])*)*)$", "type": "string" } }, "id": "https://json.schemastore.org/json-patch.json", "items": { "oneOf": [ { "additionalProperties": false, "required": ["value", "op", "path"], "properties": { "path": { "$ref": "#/definitions/path" }, "op": { "description": "The operation to perform.", "type": "string", "enum": ["add", "replace", "test"] }, "value": { "description": "The value to add, replace or test." } } }, { "additionalProperties": false, "required": ["op", "path"], "properties": { "path": { "$ref": "#/definitions/path" }, "op": { "description": "The operation to perform.", "type": "string", "enum": ["remove"] } } }, { "additionalProperties": false, "required": ["from", "op", "path"], "properties": { "path": { "$ref": "#/definitions/path" }, "op": { "description": "The operation to perform.", "type": "string", "enum": ["move", "copy"] }, "from": { "$ref": "#/definitions/path", "description": "A JSON Pointer path pointing to the location to move/copy from.", "pattern": "^#?(|(/([^/~]|~[01])*)*)$" } } } ] }, "title": "JSON schema for JSONPatch files", "type": "array" }