{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.twindev.org/unece/UneceError",
	"title": "UneceError",
	"description": "A notification that an error has occurred.",
	"type": "object",
	"properties": {
		"@context": {
			"$ref": "https://schema.twindev.org/unece/UneceContextType",
			"description": "JSON-LD Context."
		},
		"type": {
			"const": "Error",
			"description": "JSON-LD Type."
		},
		"associatedEvent": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceCorrectiveEvent"
			},
			"description": "A corrective event associated with this declared error."
		},
		"issueDateTime": {
			"type": "string",
			"description": "An issue date, time, date time or other date time value for this declared error.",
			"format": "date-time"
		},
		"reasonCode": {
			"type": "string",
			"description": "A code specifying a reason for the declared error."
		}
	},
	"required": ["type"]
}
