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
Timothy Jones
04/25/2023, 1:26 PM
This is a good question, but I don’t know, I’m afraid.
Timothy Jones
04/25/2023, 1:26 PM
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?
Timothy Jones
04/25/2023, 1:27 PM
If you did do that, and could provide JSON matchers, I think it would be pretty unmaintainable.
Timothy Jones
04/25/2023, 1:28 PM
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.