Add title/desc to lots of event schemas, add missing keys (e.g. avatar_url, displayname), add required keys section to spec.

This commit is contained in:
Kegan Dougal 2015-05-19 16:49:20 +01:00
parent c237c9010a
commit c61223fb27
16 changed files with 107 additions and 9 deletions

View file

@ -66,8 +66,8 @@ def check_unaccessed(name, store):
def main():
# add a template filter to produce pretty pretty JSON
def jsonify(input, pre_whitespace=0):
code = json.dumps(input, indent=4)
def jsonify(input, indent=None, pre_whitespace=0):
code = json.dumps(input, indent=indent)
if pre_whitespace:
code = code.replace("\n", ("\n" +" "*pre_whitespace))