{
"match": true,
"comment": "XML top level array matches",
"expected": {
"headers": {"Content-Type": "application/xml"},
"body" : {
"contentType": "application/xml",
"encoded": false,
"content": ""
},
"matchingRules" : {
"body": {
"$.people.*['@id']": {
"matchers": [
{
"match": "type"
}
]
},
"$.people.*['@name']": {
"matchers": [
{
"match": "type"
}
]
},
"$.people.*['@dob']": {
"matchers": [
{
"match": "regex",
"regex": "\\d{2}/\\d{2}/\\d{4}"
}
]
},
"$.people.*['@timestamp']": {
"matchers": [
{
"match": "regex",
"regex": "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}"
}
]
}
}
}
},
"actual": {
"headers": {"Content-Type": "application/xml"},
"body": {
"contentType": "application/xml",
"encoded": false,
"content": ""
}
}
}