We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b6e17b commit ba30673Copy full SHA for ba30673
api-test.sh
@@ -386,7 +386,7 @@ has_key() {
386
387
check_eq() {
388
tput cuf 6
389
- local type=$(jq -r -c --argjson a "$1" -n '$a|type' 2&>/dev/null)
+ local type=$(jq -r -c --argjson a "$1" -n '$a|type' 2>/dev/null)
390
local check
391
if [[ $type == "object" || $type == "array" ]]; then
392
check=$(jq -c --argjson a "$1" --argjson b "$2" -n 'def post_recurse(f): def r: (f | select(. != null) | r), .; r; def post_recurse: post_recurse(.[]?); ($a | (post_recurse | arrays) |= sort) as $a | ($b | (post_recurse | arrays) |= sort) as $b | $a == $b')
0 commit comments