Skip to content

Commit

Permalink
Add a comment to explain the purpose.
Browse files Browse the repository at this point in the history
Co-authored-by: Thijs Schreijer <[email protected]>
  • Loading branch information
outsinre and Tieske authored Feb 23, 2024
1 parent 6af6ad9 commit df4cb19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions update_api_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ echo "]===]))" >> "$FILENAME"
# Copy the individual API files
for f in "${file_list[@]}"; do
source_file=$SOURCE/apis/$f.normal.json
# remove example keys from documentation to prevent security reports from being triggered
jq 'walk( if (type == "object") and has("documentation") and (.documentation|contains("wJalrXUtnFEMI")) then del(.documentation) else . end )' "$source_file" >| "$TFILE"
mv -f "$TFILE" "$source_file"; touch "$TFILE"
# replace . with - since . can't be in a Lua module name
Expand Down

0 comments on commit df4cb19

Please sign in to comment.