Exclude some more schemas

This commit is contained in:
Rory& committed 2025-11-21 16:18:54 +01:00
1 parent c168b8faf9
commit 7a7ccbe291
2 files changed
+74 -2

No files matched your search

+7
View File
@@ -96,6 +96,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});