mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 13:55:39 +00:00
fix some types not being generated correctly
This commit is contained in:
@@ -77,13 +77,15 @@ 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) => {
|
||||
console.log(x);
|
||||
return (
|
||||
(x.endsWith("Schema") ||
|
||||
x.endsWith("Response") ||
|
||||
x.startsWith("API")) &&
|
||||
!Excluded.includes(x)
|
||||
);
|
||||
});
|
||||
console.log(schemas);
|
||||
|
||||
var definitions = {};
|
||||
@@ -135,7 +137,7 @@ function main() {
|
||||
definitions = { ...definitions, [name]: { ...part } };
|
||||
}
|
||||
|
||||
// modify(definitions);
|
||||
//modify(definitions);
|
||||
|
||||
fs.writeFileSync(schemaPath, JSON.stringify(definitions, null, 4));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user