openapi: log entity responses

This commit is contained in:
Rory&
2026-07-31 18:20:14 +02:00
parent 3975d896b4
commit 4f3ae52c73
+12 -1
View File
@@ -190,12 +190,23 @@ function apiRoutes(missingRoutes) {
console.log(
`${bgRedBright(" ")}\x1b[5m${white("\x1b[48;5;208mWARN")}${bgRedBright(" ")}\x1b[0m\x1b[33m`,
"Route",
method,
method.toUpperCase(),
path,
"missing response schema:",
v.body,
"\x1b[0m",
);
} else if (v.body.startsWith("API") && v.body !== "APIErrorResponse" && v.body !== "APIErrorOrCaptchaResponse") {
missingResponseSchemaCount++;
console.log(
`${bgRedBright(" ")}\x1b[5m${white("\x1b[48;5;208mWARN")}${bgRedBright(" ")}\x1b[0m\x1b[33m`,
"Route",
method.toUpperCase(),
path,
"using entity response schema:",
v.body,
"\x1b[0m",
);
}
} else
obj.responses[k] = {