surya megham
09/10/2025, 12:22 PMexist
field inside the auth
object but when i pass the below pattern in mapping then it should point to different file but it is not doing - for both true and false it is going to same file, that is because it always maps to the same mapping irrespective i give true
or false
im using gradel deps --> implementation "com.github.tomakehurstwiremock jre8 standalone2.35.1
"bodyPatterns": [
{
"matchesJsonPath": {
"expression": "$.auth.exist",
"absent": "false"
}
}
]
surya megham
09/12/2025, 4:42 AMfield
is present) - only using absent
for positive confirmation ( ensure field
is not present).
like below instead of using absent
equals false
"bodyPatterns": [
{
"matchesJsonPath": {
"expression": "$.auth.exist",
"absent": "true"
}
}
]
or
"bodyPatterns": [
{ "matchesJsonPath": "$.auth.exist"}
]