pact-jvm icon indicating copy to clipboard operation
pact-jvm copied to clipboard

Could we get methods in the LambdaDsl that allow users to use regexes for keynames?

Open ghost opened this issue 6 years ago • 3 comments

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?

ghost avatar Aug 28 '18 20:08 ghost

@bethesque here is an interesting one to consider.

uglyog avatar Sep 22 '18 23:09 uglyog

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.

LoraV avatar Dec 22 '18 16:12 LoraV

I'd be interested in this as well.

colossatr0n avatar Mar 17 '22 22:03 colossatr0n