The equivalent of eachLike (which matches on values of an array) but for unknown keys in a hash is requested for pact-python.
Apparently I cannot use Like, SomethingLike, Term etc. for matching keys in json responses.
In below example, I'll have at least 1 node in response, where the node id can have any value (in the example there are 3 nodes with ids 1, 2, 3).
expected = {
"nodes": {
"1": {
"description": SomethingLike("description"),
"classification": SomethingLike("classification")
},
"2": {
"description": SomethingLike("description"),
"classification": SomethingLike("classification")
},
"3": {
"description": SomethingLike("description"),
"classification": SomethingLike("classification")
}
}
}