Hi there,
I would like to validate some objects & arrays from the response body.
The responseBody is something like this:
HolidayRightsResults": [
{
“NissNumber”: ,
“HolidayRights”: ,
“CalculationMessages”: [
{
“Timestamp”: ,
“NewEmployerNumber”:,
“EmployeeNumber”: ,
“Type”: ,
“Message”: ,
“Details”: ,
“Code”: ,
“Info”:
}
]
},
{
“NissNumber”: ,
“HolidayRights”: ,
“CalculationMessages”: [
{
“Timestamp”: ,
“NewEmployerNumber”:,
“EmployeeNumber”: ,
“Type”: ,
“Message”: ,
“Details”: ,
“Code”: ,
“Info”:
}
]
},
{
“NissNumber”: ,
“HolidayRights”: ,
“CalculationMessages”: [
{
“Timestamp”: ,
“NewEmployerNumber”:,
“EmployeeNumber”: ,
“Type”: ,
“Message”: ,
“Details”: ,
“Code”: ,
“Info”:
}
]
},
Now I want to validate if HolidayrightsResults.Nissnumber and HolidayRightsResults.CalculationMessages.Type from every array with an object in a variable with the same structure like the responsebody. But I dont want to check every returned value in the object.