Merge pull request #25 from PaytmLabs/feature/scripts/pretty-json

scripts: Pretty print JSON schemas
This commit is contained in:
Yann Hamon 2021-01-04 21:49:47 +01:00 committed by GitHub
commit bcf1fc9568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)