{
    "description": "Details of a message for an Order.",
    "properties": {
        "code": {
            "description": "The code associated with this Message.",
            "maxLength": 12,
            "type": "string"
        },
        "correctionRequired": {
            "description": "Indicates whether the Buyer must submit an updated Order to resolve the error/jeopardy condition.",
            "type": "boolean"
        },
        "field": {
            "description": "The field / attribute on the Order associated with the Message.",
            "maxLength": 100,
            "type": "string"
        },
        "messageInformation": {
            "description": "A description of the error condition or information to be conveyed to the Buyer.",
            "maxLength": 150,
            "type": "string"
        },
        "objectType": {
            "description": "The type of the object, orderMessage.",
            "enum": [
                "orderError"
            ],
            "type": "string"
        },
        "orderItemReference": {
            "description": "A reference to the item on the Order to which this notification applies.",
            "maxLength": 4,
            "type": "string"
        },
        "severity": {
            "description": "The severity of the Message.",
            "enum": [
                "ERROR",
                "INFORMATION"
            ],
            "type": "string"
        }
    },
    "required": [
        "messageInformation",
        "severity",
        "correctionRequired"
    ],
    "title": "orderMessage",
    "type": "object"
}