summary refs log tree commit diff
path: root/scripts/openapi.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-11-26 15:27:19 +0100
committerRory& <root@rory.gay>2025-11-26 15:27:19 +0100
commit06e33083556ae750f25bd07abff0670e0efacda7 (patch)
tree5814435bb825845aba123557c6ab1ba9bdc67a72 /scripts/openapi.js
parentExpose mor emember keys (diff)
downloadserver-ts-06e33083556ae750f25bd07abff0670e0efacda7.tar.xz
Mention inbox, hopefully
Diffstat (limited to 'scripts/openapi.js')
-rw-r--r--scripts/openapi.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/openapi.js b/scripts/openapi.js

index 6d4d6366..589614cc 100644 --- a/scripts/openapi.js +++ b/scripts/openapi.js
@@ -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 || {};