Slackbot
11/07/2023, 6:33 PMDirk Bolte
11/07/2023, 8:53 PMformParameters
:
"formParameters": {
"tool": {
"equalTo": "WireMock"
}
}
I don't know whether there is a matcher for `exists`/`doesNotExist` but you may be able mimic this with `doesNotMatch`:
"formParameters": {
"code": {
"doesNotMatch": ".+"
}
}
Julio Marvim
11/07/2023, 9:15 PM"form parameters": {
"code": {
"doesNotMatch": ".+"
}
}
I don't know if I did something wrong: but I'm getting the following error:
Unrecognized field "formParameters" (class com.github.tomakehurst.wiremock.matching.RequestPattern), not marked as ignorable
Aaron
11/07/2023, 10:36 PM"formParameters": {
"grant_type": {
"equalTo": "authorization_code"
},
"code": {
"absent": true
}
}
Should workAaron
11/07/2023, 10:37 PMformParameters
is only in Wiremock 3 and aboveJulio Marvim
11/08/2023, 5:01 PM"formParameters": {
"grant_type": {
"equalTo": "authorization_code"
},
"code": {
"absent": true
}
}
But I needed to update the version of the wiremock I was using to the latest version available.
Thank you very much.