pact-jvm
pact-jvm copied to clipboard
Could we get methods in the LambdaDsl that allow users to use regexes for keynames?
Several endpoints on our system have contracts that look kind of like this:
{ "08/01/2018": { "stuff": "someData", "things": 25 }, "08/02/2018": { "stuff": "moreData", "things": 72 } ... }
The consumer might not know or care what dates to expect. They just expect the key to be a particular date format, or some other regex. Would it be possible to have pact jvm support something like that when defining tests, particularly in the java8 library?
@bethesque here is an interesting one to consider.
I'm combining accounts and closing the one I used to file this case. But I'm still interested in this feature if it's possible.
I'd be interested in this as well.