diff --git a/templating/matrix_templates/units.py b/templating/matrix_templates/units.py index 42ce3f22..5852b438 100644 --- a/templating/matrix_templates/units.py +++ b/templating/matrix_templates/units.py @@ -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: