diff --git a/src/mako/index.html.mako b/src/mako/index.html.mako
index 272797a1fe..cbb9f03d6c 100644
--- a/src/mako/index.html.mako
+++ b/src/mako/index.html.mako
@@ -91,9 +91,9 @@ function onCopy(e) {
% for version in api.list[name]:
<%
- # We know type_names is just ["api", "cli"]
- #type_names = tc.keys()
type_names = ["api", "cli"]
+ assert set(type_names) == set(tc.keys()), "The type cache has changed, make sure to update the documentation accordingly"
+
with open(api_json_path(directories.api_base, name, version)) as fp:
metadata = json.load(fp)