Skip to content

Commit

Permalink
fix: Removed indent from discovery cache json files (#2099)
Browse files Browse the repository at this point in the history
Changed the discovery artifact JSON indentation from 2 to 0, in
order to reduce the size by several megabytes.

Refs: #1967

Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
jorenham and parthea authored Jan 8, 2024
1 parent ff3a476 commit 0a28454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion describe.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def document_api(
# Reset position to the beginning
f.seek(0)
# Write the changes to disk
json.dump(discovery, f, indent=2, sort_keys=True)
json.dump(discovery, f, indent=0, sort_keys=True)
# Truncate anything left as it's not needed
f.truncate()

Expand Down

0 comments on commit 0a28454

Please sign in to comment.