1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/schema.js b/scripts/schema.js
index c29d5bab..b4393558 100644
--- a/scripts/schema.js
+++ b/scripts/schema.js
@@ -57,6 +57,8 @@ const Excluded = [
"PropertiesSchema",
"AsyncSchema",
"AnySchema",
+ "SMTPConnection.CustomAuthenticationResponse",
+ "TransportMakeRequestResponse",
];
function modify(obj) {
@@ -75,14 +77,14 @@ function main() {
const generator = TJS.buildGenerator(program, settings);
if (!generator || !program) return;
- let schemas = generator
- .getUserSymbols()
- .filter(
- (x) =>
- (x.endsWith("Schema") || x.endsWith("Response")) &&
- !Excluded.includes(x),
+ let schemas = generator.getUserSymbols().filter((x) => {
+ return (
+ (x.endsWith("Schema") ||
+ x.endsWith("Response") ||
+ x.startsWith("API")) &&
+ !Excluded.includes(x)
);
- console.log(schemas);
+ });
var definitions = {};
@@ -133,7 +135,7 @@ function main() {
definitions = { ...definitions, [name]: { ...part } };
}
- modify(definitions);
+ //modify(definitions);
fs.writeFileSync(schemaPath, JSON.stringify(definitions, null, 4));
}
|