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
{{ message }}
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
Oh, I've just seen that this issue is already fixed on the master branch.
Maybe you can update the version of your software, thus that users who install strest with npm also benefit from it.
Describe the bug
After the request the validation of json data is in some cases wrong.
To Reproduce
Call some page which returns this simple JSON:
{ a: false, b: 0, c: null }
Validate a, b, c in your config with:
{jsonpath: content.a, expect: false, jsonpath: content.b, expect: 0, jsonpath: content.c, expect: null }
Result:
Schema Validation failed: ""expect" must be a boolean"
Expected behavior
No errors, as the returned value and the expected value are the same.
Additional context
Have a look at https://dorey.github.io/JavaScript-Equality-Table/.
Here are some corner cases which value of variables might be compared to the corresponded value.
The text was updated successfully, but these errors were encountered: