mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-05 22:03:43 +01:00
Allow for missing responses key
This commit is contained in:
parent
94b13c0121
commit
0a9f61029a
|
|
@ -178,7 +178,7 @@ class MatrixUnits(Units):
|
|||
endpoint["req_param_by_loc"][p["loc"]].append(p)
|
||||
|
||||
endpoint["example"]["responses"] = [] # Ordered list of maps
|
||||
for code, res in single_api["responses"].items():
|
||||
for code, res in single_api.get("responses", {}).items():
|
||||
description = res.get("description", "")
|
||||
example = res.get("examples", {}).get("application/json", "")
|
||||
if description and example:
|
||||
|
|
|
|||
Loading…
Reference in a new issue