agrostar / zzapi-vscode

VS Code extension for zzapi - an API testing and documentation framework
MIT License
3 stars 0 forks source link

Support for greater/less than comparison in test for array sizes #4

Closed vasan-agrostar closed 1 month ago

vasan-agrostar commented 1 month ago

Forked from issue #3 by @gitblit.

Cannot use $gt, $gte, $lt, $lte operators on array size.

Arrays can only be asserted for exact sizing. Ideally I'd like more flexibility on testing array sizes.

$.items: { $exists: true, $type: array, $size: { $gt: 5 } }

vasan-agrostar commented 1 month ago

Even I have felt the need for these. Currently the tests are process only one level deep. We will need to add the next level. We will take this up.

vasan-agrostar commented 1 month ago

zzapi v1.2.0 and zzapi-vscode v2.1.0 address this issue.