Add new model types for Swagger APIs and remove obsolete models

This commit is contained in:
Lorenz Hilpert
2025-01-29 17:28:33 +01:00
parent c6a174d93f
commit 8e7b067310
1375 changed files with 305 additions and 30426 deletions

View File

@@ -1,23 +0,0 @@
/**
* Script that downloads the swagger file from the given url
*/
const fetch = require('node-fetch');
const https = require('https');
const path = require('path');
const httpsAgent = new https.Agent({
rejectUnauthorized: false,
});
(async () => {
const url = process.argv[2];
const fileName = process.argv[3];
const res = await fetch(url, {
agent: httpsAgent,
});
// Write the file to the disk
const fileStream = require('fs').createWriteStream(fileName);
res.body.pipe(fileStream);
console.log('Swagger file downloaded successfully');
})();