{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolTransferError",
	"title": "DataspaceProtocolTransferError",
	"description": "Interface for the Dataspace Protocol transfer error response.",
	"type": "object",
	"properties": {
		"@context": {
			"$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContextType",
			"description": "The JSON-LD context."
		},
		"@type": {
			"const": "TransferError",
			"description": "The JSON-LD type."
		},
		"consumerPid": {
			"type": "string",
			"description": "MUST refer to the transfer identifier of the Consumer side."
		},
		"providerPid": {
			"type": "string",
			"description": "MUST refer to the transfer identifier of the Provider side."
		},
		"code": {
			"type": "string",
			"description": "The error code."
		},
		"reason": {
			"type": "array",
			"items": {},
			"description": "The error reason(s)."
		}
	},
	"required": ["@context", "@type", "consumerPid", "providerPid"]
}
