Since I didn't get any bites, I'll rephrase my que...
# pact-jvm
d
Since I didn't get any bites, I'll rephrase my question: using Pact JVM can I provide raw JSON to the matcher and have it match on the types instead of the actual values? Or is that only possible using the DSL matchers.
t
This is a good question, but I don’t know, I’m afraid.
It might be useful if you could provide some information about the use case - why does your colleague want the document to be provided by a JSON resource file? What’s the benefit?
If you did do that, and could provide JSON matchers, I think it would be pretty unmaintainable.
If your colleague is just thinking “this looks like a lot of hard coded data, it would be more appropriate in a resource file”, I would encourage them to look again and think about the maintenance implications.
But maybe I am missing the use case.