Skip to content

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

@mitasov-ra

Description

@mitasov-ra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions