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:
parent
c237c9010a
commit
c61223fb27
16 changed files with 107 additions and 9 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue