File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ payload="$(cat <&0)"
1515
1616unknown_keys=$( jq --slurpfile schema " $( dirname $0 ) /source_schema.json" ' (.source // [] | keys_unsorted) - ($schema[0] | keys_unsorted)' <<< " $payload" )
1717
18- if jq --exit-status ' length > 0' <<< " $unknown_keys" ; then
18+ if jq --exit-status ' length > 0' <<< " $unknown_keys" & > /dev/null ; then
1919 echo " Found unknown keys in source:"
2020 jq ' .[]' <<< " $unknown_keys"
2121 exit 1
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ payload="$(cat <&0)"
2727
2828unknown_keys=$( jq --slurpfile schema " $( dirname $0 ) /in_schema.json" ' (.params // [] | keys_unsorted) - ($schema[0] | keys_unsorted)' <<< " $payload" )
2929
30- if jq --exit-status ' length > 0' <<< " $unknown_keys" ; then
30+ if jq --exit-status ' length > 0' <<< " $unknown_keys" & > /dev/null ; then
3131 echo " Found unknown keys in get params:"
3232 jq ' .[]' <<< " $unknown_keys"
3333 exit 1
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ payload="$(cat <&0)"
2222
2323unknown_keys=$( jq --slurpfile schema " $( dirname $0 ) /out_schema.json" ' (.params // [] | keys_unsorted) - ($schema[0] | keys_unsorted)' <<< " $payload" )
2424
25- if jq --exit-status ' length > 0' <<< " $unknown_keys" ; then
25+ if jq --exit-status ' length > 0' <<< " $unknown_keys" & > /dev/null ; then
2626 echo " Found unknown keys in put params:"
2727 jq ' .[]' <<< " $unknown_keys"
2828 exit 1
You can’t perform that action at this time.
0 commit comments