The Jackal Consumer Endpoint can return an array of validations serialised as JSON when the shape or content of submitted contracts is invalid. Each validation object within the validation array has the following format:
{
"contract": "STRING",
"valid": "BOOLEAN",
"errors": "NULL | ARRAY"
}The following applies:
- The
contractfield is in the format<provider>/<api>/<scenario> <- <consumer>to identify the contract which was invalid - The
validfield is a boolean and indicate whether the contract is valid - The
errorsfield isnullif the contract is valid, if it is invalid, theerrorsfield is an array of objects with the following shape:
{
"name": "STRING",
"message": "STRING"
}