From 5ad6b481bef5c57684ca7eb5ae589de459417700 Mon Sep 17 00:00:00 2001 From: Maxime Brunet Date: Mon, 4 Jan 2021 11:28:45 -0800 Subject: [PATCH] scripts: Pretty print JSON schemas --- scripts/openapi2jsonschema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/openapi2jsonschema.py b/scripts/openapi2jsonschema.py index 52a0c80..1f3b896 100755 --- a/scripts/openapi2jsonschema.py +++ b/scripts/openapi2jsonschema.py @@ -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)