Hello, How can we mention in request mapping if a ...
# help
m
Hello, How can we mention in request mapping if a query parameter should not be null or mandatory Currently I have defined query parametere like
Copy code
"urlPathPattern": "/v3/item*",
"queryParameters": {
  "item": {
    "doesNotMatch": "^00000000[1-2]$"
  }
}
but it's also matching with another type of request
Copy code
"urlPathPattern": "/v3/item*",
"queryParameters": {
  "product": {
    "equalTo": "12312321421"
  }
}
My understanding is that because in second json request item is null but it's satisfying condition for
Copy code
"doesNotMatch": "^00000000[1-2]$"
which is why wiremock is responding with stub mapped to first reques while ideally it should respond with stub for second mapping. I know with priority this can fixed but in my application already priorities are set and getting messed up. Does wiremock provide anything for such scenario ?