{
    "additionalProperties": false,
    "description": "Schema for a size violation bad row",
    "properties": {
        "failure": {
            "additionalProperties": false,
            "description": "Information regarding the size violation",
            "properties": {
                "actualSizeBytes": {
                    "description": "Maximum payload size allowed by the current platform",
                    "maximum": 1073741824,
                    "minimum": 0,
                    "type": "integer"
                },
                "expectation": {
                    "description": "Expectation which was not met",
                    "maxLength": 256,
                    "type": "string"
                },
                "maximumAllowedSizeBytes": {
                    "description": "Maximum payload size allowed by the current platform",
                    "maximum": 1073741824,
                    "minimum": 0,
                    "type": "integer"
                },
                "timestamp": {
                    "_format": "date-time",
                    "description": "Timestamp at which the failure occurred",
                    "type": "string"
                }
            },
            "required": [
                "timestamp",
                "maximumAllowedSizeBytes",
                "actualSizeBytes"
            ],
            "type": "object"
        },
        "payload": {
            "description": "The truncated payload that resulted in a size violation",
            "type": "string"
        },
        "processor": {
            "additionalProperties": false,
            "description": "Information about the piece of software responsible for the creation of this size violation",
            "properties": {
                "artifact": {
                    "description": "Artifact responsible for the creation of this size violation",
                    "maxLength": 512,
                    "type": "string"
                },
                "version": {
                    "description": "Version of the artifact responsible for the creation of this size violation",
                    "maxLength": 32,
                    "pattern": "^(\\d+\\.\\d+\\.\\d+.*)$",
                    "type": "string"
                }
            },
            "required": [
                "artifact",
                "version"
            ],
            "type": "object"
        }
    },
    "required": [
        "failure",
        "payload",
        "processor"
    ],
    "self": {
        "format": "jsonschema",
        "name": "size_violation",
        "vendor": "com.snowplowanalytics.snowplow.badrows",
        "version": "1-0-0"
    },
    "type": "object"
}