hurl
hurl copied to clipboard
Add assert that all collection values are equal to specified value
Problem to solve
when using jsonpath such as "$.result..hash" i will get a collection of hashes i want to assert that all values in the collection are equal to a specified value
Proposal
The == predicate can be used on a collection to check all values in the collection e.g. "$.result..hash" == {{hash}} will check all values in the collection are equal to {{hash}}
Additional context and resources
Tasks to complete
hello @claytonneal
yes we should address that with an additional each keywork (https://github.com/Orange-OpenSource/hurl/issues/347)
"$.result..hash" each == {{hash}}
Sounds great