Tien Vo
10/26/2023, 3:45 AMThe example values should represent what the matcher is matching. In the customer facing DSL, this should be validated.
Tien Vo
10/26/2023, 3:46 AMrholshausen
10/26/2023, 4:41 AMrholshausen
10/26/2023, 4:44 AMinteger(100)
, you can know that the regex matcher \d+
and RandomInt generator is correct, but the RandomDecimal one is not correct. The backend Rust functions won't know that the operation is about integers.Tien Vo
10/31/2023, 6:20 AMinteraction #1
in v2/http-consumer.feature because of this exception (from pact-php):
The pattern \w{3}\d{3} is not valid for value a. Failed with error code 0. (PhpPact\Consumer\Matcher\Exception\InvalidRegexException)
Tien Vo
11/03/2023, 2:18 AMrholshausen
11/03/2023, 2:42 AMrholshausen
11/03/2023, 2:45 AM\\w{1,3}\\d{0,3}
it should then work. There may be lots of other issues like that.Tien Vo
11/03/2023, 2:52 AMcompatibility suite
is a good idea for now. Just add a simple condition to pact-php
and call it a day.