{
    "additionalProperties": false,
    "description": "Generic, very unstructured bad row that can be emitted by any Snowplow component",
    "properties": {
        "failure": {
            "additionalProperties": false,
            "properties": {
                "errors": {
                    "description": "Information about the issue",
                    "items": {
                        "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                },
                "timestamp": {
                    "_format": "date-time",
                    "description": "Timestamp at which the failure occurred",
                    "type": "string"
                }
            },
            "required": [
                "timestamp",
                "errors"
            ],
            "type": "object"
        },
        "payload": {
            "description": "The stringified event for which there is a bad row",
            "type": "string"
        },
        "processor": {
            "additionalProperties": false,
            "description": "Information about the piece of software responsible for the creation of the bad row",
            "properties": {
                "artifact": {
                    "description": "Artifact responsible for the creation of the bad row",
                    "maxLength": 512,
                    "type": "string"
                },
                "version": {
                    "description": "Version of the artifact responsible for the creation of the bad row",
                    "maxLength": 32,
                    "pattern": "^(\\d+\\.\\d+\\.\\d+.*)$",
                    "type": "string"
                }
            },
            "required": [
                "artifact",
                "version"
            ],
            "type": "object"
        }
    },
    "required": [
        "processor",
        "payload",
        "failure"
    ],
    "self": {
        "format": "jsonschema",
        "name": "generic_error",
        "vendor": "com.snowplowanalytics.snowplow.badrows",
        "version": "1-0-0"
    },
    "type": "object"
}