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

json-unit.any-* for array elements #647

Open
mitasov-ra opened this issue Jul 17, 2023 · 0 comments
Open

json-unit.any-* for array elements #647

mitasov-ra opened this issue Jul 17, 2023 · 0 comments

Comments

@mitasov-ra
Copy link

mitasov-ra commented Jul 17, 2023

Read the documentation, maybe we already have the feature
Didn't find

Is your feature request related to a problem? Please describe.
List of standard inline matchers seems incomplete, we have any-*, but we don't have anything for collections, arrays or maps.

Describe the solution you'd like

I'd be glad to see something like:

{"foo": [1, 2, 3]} matches {"foo": [#{json-unit.any-int}...]} or {"foo": #{json-unit.array-of-int]}

Describe alternatives you've considered
Sure there's alternative to write a custom matcher or to just use assertions.

But this doesn't solve for example issue with MockServer, which supports inline matchers only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant