{ "title": "JSON schema for JSONPatch files", "$schema": "http://json-schema.org/draft-04/schema#", "type": "array", "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." } } } ] }, "definitions": { "path": { "description": "A JSON Pointer path.", "type": "string" } } }