{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "DataOperation",
	"type" : "object",
	"additionalProperties" : false,
	"description" : "Operation to perform on the object.  Make sure that exactly one 'data' object exists in this object instance.  Multiple objects are not allowed to be contained in this object",
	"properties" : {
		"type" : {
			"$ref" : "/resources/schema/data/api/v2/DataOperationType.json",
			"description" : "Tyep of operation to be applied on the data represented by 'data' field"
		},

		"data" : {
			"$ref" : "/resources/schema/data/api/v2/DataObject.json",
			"description" : "The actual data object.  It should be instance of DataObject.  In case of 'delete' operation, only the record_id should suffice."
		},

		"filters" : {
			"type" : "array",
			"description" : "Optional Filters that can be applied on retrieve request on this data.  Make sure that Params array in each filter contains exactly one value.  Additional values in the params array will be discarded",
			"items" : {
				"$ref" : "/resources/schema/data/api/v2/DataFilter.json",
				"description" : "Each filter has to be instance of Filter Object"
			},

			"minItems" : 1,
			"maxItems" : 20,
			"uniqueItems" : true
		}
	},

	"required" : 
	[
		"type"
	]
}