Merge branch 'removeStupidPolies' of https://github.com/MathMan05/server into removeStupidPolies

This commit is contained in:
MathMan05
2025-11-26 15:56:25 -06:00
10 changed files with 310 additions and 47 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ const path = require("path");
const fs = require("fs");
const { NO_AUTHORIZATION_ROUTES } = require("../dist/api/middlewares/Authentication");
require("../dist/util/util/extensions");
const { bgRedBright } = require("picocolors");
const openapiPath = path.join(__dirname, "..", "assets", "openapi.json");
const SchemaPath = path.join(__dirname, "..", "assets", "schemas.json");
@@ -82,7 +83,7 @@ function combineSchemas(schemas) {
for (const key in definitions) {
if (!schemaRegEx.test(key)) {
console.error(`Invalid schema name: ${key}, context:`, definitions[key]);
console.error(`${bgRedBright("ERROR")} Invalid schema name: ${key}, context:`, definitions[key]);
continue;
}
specification.components = specification.components || {};