Перейти к содержанию

Structure "Offer validation error"

This structure describes validation errors that may occur when managing offers.

Field description

Name Description Data type Required
timestamp Time when the error occurred. String +
status HTTP status code. For this error, it is 422. Number +
error HTTP status name. String +
message Error details. For this error, it is "Wrong fields". String +
wrongFields List of validation errors. Array of "Description of a validation error" structures +

Sample

JSON
{
    "timestamp": "2020-03-14T16:56:38",
    "status": 422,
    "error": "Unprocessable Entity",
    "message": "Wrong fields",
    "wrongFields": [
        {
            "fieldName": "waypointListSource",
            "errorCode": 1
        },
        {
            "fieldName": "waypointListTarget",
            "errorCode": 1
        }
    ]
}