Nuno Frias
02/27/2023, 11:33 AMFromProviderState
matcher. This would look like something like this FromProviderState(expr, example, regex)
.
This would allow me to enforce a tighter rule on the format of that field, which could be useful because I have no guarantees that the the value returned from provider state complies with the format the consumer is expecting.
I cannot implement a custom matcher because the Matcher
interface (in matchers/matcher.go
) has a private method isMatcher
-- preventing implementations outside of the matchers
package.
Is anyone aware of an alternative ?
Is it worth creating a issue to convert the isMatcher
into a public method ?Matt (pactflow.io / pact-js / pact-go)
Nuno Frias
02/28/2023, 12:32 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Like
matcherNuno Frias
03/01/2023, 8:18 PM