Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line check #13

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ EOF
fi
if [ "--wget-json-search" = $( echo "$arg" | cut -d '=' -f 1) ]; then
rm json-search-x86_64.AppImage
wget https://github.com/cosmo-ray/json-search/releases/download/0.2/json-search-x86_64.AppImage
wget https://github.com/cosmo-ray/json-search/releases/download/0.3.1/json-search-x86_64.AppImage
chmod +x json-search-x86_64.AppImage
JSON_SEARCH="./json-search-x86_64.AppImage"
elif [ "--list-api-versions" = $arg ]; then
Expand Down
4 changes: 2 additions & 2 deletions helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ get_type_direct() {
elif [ "$sub_type" == 'null' ]; then
local osub_ref=$(json-search -R '$ref' <<< ${arg_info})
local sub_ref=$(cut -d '/' -f 4 <<< $osub_ref 2> /dev/null)
local sub_ref_properties=$(jq $osub_ref.properties < osc-api.json 2> /dev/null)
osub_ref=$(cut -c 2- <<< $osub_ref | sed 's|/|.|g')
if [ "$sub_ref_properties" == '' ]; then
local sub_ref_properties=$(jq $osub_ref.properties < osc-api.json 2> /dev/null)
if [ "$sub_ref_properties" == 'null' ] || [ "$sub_ref_properties" == '' ]; then
local arg_info="$(jq $osub_ref < osc-api.json)"
local dtypes=$(json-search $limit -R type 2> /dev/null <<< $arg_info)
types="array $dtypes"
Expand Down
Loading