-
Notifications
You must be signed in to change notification settings - Fork 703
Labels
enhancementNew feature or requestNew feature or requestopen-to-contributionOpen to external contributersOpen to external contributers
Milestone
Description
Current predicate https://hurl.dev/docs/asserting-response.html#predicates can't distinguish between object and lists. There is a isCollection but it returns true for bytes, object, list, nodeset so we can't use it to differentiate object and list.
For instance:
{
"fruits": {
"name": "lemon"
}
}and
{
"fruits": ["lemon"]
}Both pass this assert:
GET https://localhost:fruits
HTTP 200
[Asserts]
jsonpath "$.fruits" isCollectionTo do:
- choose name between
isArrayvsisList - make clear in the docs what we call collections (bytes, list, nodeset, object)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestopen-to-contributionOpen to external contributersOpen to external contributers