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

PactDslJsonRootValue to support an array with different data-type values

Open jaideeprana opened this issue 6 years ago • 2 comments

I have use-case where I'm expecting PactDslJsonRootValue to contain one value as string and another one as an integer. Here's the example:

{ "someArray": [ "some value that is a string", 1 ] }

I'm not able achieve this using eachLike and PactDslJsonRootValue.

jaideeprana avatar Jun 05 '18 09:06 jaideeprana

What about the order? Is it important?

uglyog avatar Jun 11 '18 02:06 uglyog

Yes :)

jaideeprana avatar Jun 11 '18 04:06 jaideeprana