summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-10-24 00:47:11 +0200
committerRory& <root@rory.gay>2025-12-17 11:04:15 +0100
commit216405b93bc41aa89b123060093c17f2e76eba01 (patch)
tree7f2578ee9a952c7f633a933fe354d43634e4b3a9
parentImprove openapi schema generation script (diff)
downloadserver-ts-216405b93bc41aa89b123060093c17f2e76eba01.tar.xz
Exclude some more schemas
-rw-r--r--scripts/schema.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/schema.js b/scripts/schema.js

index 07274994..5e4485d1 100644 --- a/scripts/schema.js +++ b/scripts/schema.js
@@ -113,6 +113,13 @@ const excludedLambdas = [ return true; } }, + (n, s) => { + if (s.properties && Object.keys(s.properties).every(x=> x[0] === x[0].toUpperCase())) { + console.log(`\r${redBright("[WARN]")} Omitting schema ${n} as all its properties have uppercase characters.`); + exclusionList.auto.push({ value: n, reason: "Schema with only uppercase properties" }); + return true; + } + } // (n, s) => { // if (JSON.stringify(s).length <= 300) { // console.log({n, s});