{
"match": true,
"comment": "XML Requests match with regex",
"expected" : {
"method": "POST",
"path": "/",
"query": {},
"headers": {"Content-Type": "application/xml"},
"matchingRules": {
"body": {
"$.alligator['@name']": {
"matchers": [
{
"match": "regex",
"regex": "\\w+"
}
]
},
"$.alligator.favouriteColours.favouriteColour.#text": {
"matchers": [
{
"match": "regex",
"regex": "red|blue"
}
]
}
}
},
"body": {
"contentType": "application/xml",
"encoded": false,
"content": "redblue"
}
},
"actual": {
"method": "POST",
"path": "/",
"query": {},
"headers": {"Content-Type": "application/xml"},
"body": {
"contentType": "application/xml",
"encoded": false,
"content": "bluered"
}
}
}