-
-
Notifications
You must be signed in to change notification settings - Fork 482
Open
Labels
enhancementIndicates new feature requestsIndicates new feature requests
Description
HI,
I try to migrate this old Pact to the new LambdaDsl:
.body(PactDslJsonBody()
.minArrayLike("features", 1,2)
.stringType("name", "FEATURE", "FEATURE_2")
)
My solution is:
.body(
newJsonBody { o: LambdaDslJsonBody ->
o.minArrayLike("features", 1, 2) { feature ->
feature.stringType("name", "FEATURE")
}
}.build()
)
Unfortunately I did not find a solution to provide multiple example values like in the 'old world'.
What I would have expected would be:
.body(
newJsonBody { o: LambdaDslJsonBody ->
o.minArrayLike("features", 1, 2) { feature ->
feature.stringType("name", "FEATURE", "FEATURE_2")
}
}.build()
)
So please provide this method :)
Metadata
Metadata
Assignees
Labels
enhancementIndicates new feature requestsIndicates new feature requests