You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alternatively this could be done by introducing new operators, like allIsString, allGt or allGte, ... which would have the benefit of keeping the evaluation of the left-hand-side simple.
doing the above could then be achieved, and the edgecase of having nested structures could be handled with .map()
I have checked the following:
Describe the feature you want to add
I have no idea how hard it would be, but it would be nice to write an assert like this:
or in the
.bru
file:The idea is to check that all values in an array are strings, just with assertions. Or any of the other operators which currently exist.
Responses which would pass would be:
Responses which wouldn't pass would be:
The edge-case when the array is empty should always pass, since one can simply add another assertion that the array is not empty.
Mockups or Images of the feature
For simple arrays:
or in the
.bru
file:Nice-to-have would be further nesting like
res.body[*][*]
orres.body[*].values[*]
The error message for a fail could be the first value which failed, or something similar.
The text was updated successfully, but these errors were encountered: