Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numExamples matchers expect PactDslRootValue instead of PactDslPart #1799

Open
timvahlbrock opened this issue May 28, 2024 · 0 comments
Open
Labels
enhancement Indicates new feature requests

Comments

@timvahlbrock
Copy link
Contributor

The array matchers that allow for numExamples and the item matcher to be passed, like

fun minArrayLike(name: String, size: Int, value: PactDslJsonRootValue, numberExamples: Int = 2): PactDslJsonBody {
expect a PactDslRootValue instead of the PactDslPart for the item matcher. I don't see why this limitation is necessary, the value is only used in a call that itself expects a PactDslPart. Other array matchers use PactDslRootValue as well.

@timvahlbrock timvahlbrock changed the title numExamples Matchers expect PactDslRootValue instead of PactDslPart numExamples matchers expect PactDslRootValue instead of PactDslPart May 28, 2024
@rholshausen rholshausen added the enhancement Indicates new feature requests label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

2 participants