Hey everyone, how should I add option `ignoreContr...
# pact-net
t
Hey everyone, how should I add option
ignoreContractValues
attribute in generated pact json ?
m
What is
ignoreContractValues
(note: I don’t know .NET but it’s not a Pact concept I know of)
t
there was another library called Pactify, I have seen that attribute in the generated pact json and thought that it is part of the specification
m
right, yeah, Pactify is something else entirely. It’s not clear from the readme what
ignoreContractValues
is intended to do though?
t
so my question is more is there an option in Pact .net library to ignore those values in the contract itself as it allows to ignore the values and focus on the contract itself
we had a question here, which is unanswered still https://pact-foundation.slack.com/archives/C9UTHV2AD/p1686641476114129
maybe it will give you more context
m
The wording is very confusing, but I think the ask is - can you be looser on the matching, rather than match on exact values?
if so, the answer is yes and the terminology for that in Pact is calling “matching” and you use a “Matcher” to specify how flexible it should be
t
that was exactly what we were looking for, but we had problems with it to, let us try a bit more with those Matchers and come back with our questions or maybe answers 🙂 thanks
👍 1