Biswajit Shaw
06/27/2023, 8:26 PM{
"request": {
"urlPath": "/somePath",
"method": "POST",
"bodyPatterns": [
{
"matchesJsonPath": "[?(!(@.appointment.id))]"
}
]
},
"response": {
"status": 400,
"jsonBody": [
{
"code": 400,
"detail": "Missing Required Parameter",
"field": "product.group, title, id, contact.name, contact.number",
"message": "The request is missing a required parameter."
}
],
"headers": {
"Content-Type": "application/json"
}
}
}
Any help is appreciated. Thanks 🙂Tom
06/27/2023, 8:33 PM"bodyPatterns": [
{
"or": [
{
"matchesJsonPath": "[?(!(@.product.group))]"
},
{
"matchesJsonPath": "[?(!(@.appointment.id))]"
}
]
}
]
Biswajit Shaw
06/27/2023, 8:43 PMTom
06/27/2023, 9:26 PMBiswajit Shaw
06/28/2023, 3:26 PM"queryParameters": {
"or": {
"limit": {
"and": [
{
"matches": "^.+$"
},
{
"doesNotMatch": "[0-9]+"
}
]
},
"offset": {
"and": [
{
"matches": "^.+$"
},
{
"doesNotMatch": "[0-9]+"
}
]
}
Tom
06/28/2023, 7:35 PMqueryParameters
, then under each of those you can nest matchers as deeply as you like.