<@U9UUY3CU9> I am using matcher to match one prope...
# pact-js
d
@Matt (pactflow.io / pact-js / pact-go) I am using matcher to match one properties that can have value null most of the time or any string so how I can write the expected response body of consumer
"description":term(
generate: null,
matcher: /([a-z])|null/),
I have written this it throwing error. can you please help me to resolve it.
m
You can’t do that
null
is a type, not a string. So you can’t apply a regex to it
you need to create two scenarios - one for each
Also, for future reference, please don’t
@
people directly unless requested. We already monitor most channels and if we’re not responding it’s usually because we’re asleep 🙂
d
Thanks