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
When comparing a string, in the response inside a path, the script throws an error
jq: invalid JSON text passed to --argjson
Use jq --help for help with command-line options,
or see the jq manpage, or online docs at https://stedolan.github.io/jq
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!
When comparing a string, in the response inside a path, the script throws an error
Example:
example test case:
The reason the error arises is, an invalid string is passed to jq argson (without quotes) failing it to parse. https://github.com/subeshb1/api-test/blob/v0.3.2/api-test.sh#L389
Thanks, @badevos for reporting this!
The text was updated successfully, but these errors were encountered: