pact-foundation / pact-jvm

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://docs.pact.io
Apache License 2.0
1.08k stars 479 forks source link

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

Open ghost opened 6 years ago

ghost commented 6 years ago

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?

uglyog commented 5 years ago

@bethesque here is an interesting one to consider.

LoraV commented 5 years ago

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.

colossatr0n commented 2 years ago

I'd be interested in this as well.