mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-06 23:19:47 +00:00
Mention inbox, hopefully
This commit is contained in:
+2
-1
@@ -24,6 +24,7 @@ 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");
|
||||
@@ -84,7 +85,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 || {};
|
||||
|
||||
Reference in New Issue
Block a user