scripts: Pretty print JSON schemas

This commit is contained in:
Maxime Brunet 2021-01-04 11:28:45 -08:00
parent 558c364dbc
commit 5ad6b481be
No known key found for this signature in database
GPG key ID: 757B11B65F872567

View file

@ -93,7 +93,7 @@ def write_schema_file(schema, filename):
schema = additional_properties(schema)
schema = replace_int_or_string(schema)
schemaJSON = json.dumps(schema)
schemaJSON = json.dumps(schema, indent=2)
# Dealing with user input here..
filename = os.path.basename(filename)