feat(core): Upgrade swagger (no-changelog) (#8384)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-01-18 14:16:14 +01:00 committed by GitHub
parent f31cc0743f
commit c7c4ae4514
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 495 additions and 125 deletions

View file

@ -34,7 +34,6 @@
"start": "run-script-os",
"start:default": "cd bin && ./n8n",
"start:windows": "cd bin && n8n",
"swagger": "swagger-cli",
"test": "pnpm test:sqlite",
"test:sqlite": "N8N_LOG_LEVEL=silent DB_TYPE=sqlite jest",
"test:postgres": "N8N_LOG_LEVEL=silent DB_TYPE=postgresdb DB_POSTGRESDB_SCHEMA=alt_schema DB_TABLE_PREFIX=test_ jest --no-coverage",
@ -64,7 +63,7 @@
"!dist/**/e2e.*"
],
"devDependencies": {
"@apidevtools/swagger-cli": "4.0.0",
"@redocly/cli": "^1.6.0",
"@oclif/dev-cli": "^1.22.2",
"@types/basic-auth": "^1.1.3",
"@types/bcryptjs": "^2.4.2",
@ -84,7 +83,7 @@
"@types/shelljs": "^0.8.11",
"@types/sshpk": "^1.17.1",
"@types/superagent": "4.1.13",
"@types/swagger-ui-express": "^4.1.3",
"@types/swagger-ui-express": "^4.1.6",
"@types/syslog-client": "^1.1.2",
"@types/uuid": "^8.3.2",
"@types/validator": "^13.7.0",
@ -180,7 +179,7 @@
"sqlite3": "5.1.6",
"sse-channel": "4.0.0",
"sshpk": "1.17.0",
"swagger-ui-express": "4.5.0",
"swagger-ui-express": "5.0.0",
"syslog-client": "1.1.1",
"typedi": "0.10.0",
"typeorm": "0.3.17",

View file

@ -46,7 +46,7 @@ function bundleOpenApiSpecs(rootDir = ROOT_DIR, specFileName = SPEC_FILENAME) {
}, [])
.forEach((specPath) => {
const distSpecPath = path.resolve(rootDir, 'dist', specPath);
const command = `npm run swagger -- bundle src/${specPath} --type yaml --outfile ${distSpecPath}`;
const command = `pnpm openapi -- bundle src/${specPath} --output ${distSpecPath}`;
shell.exec(command, { silent: true });
});
}

File diff suppressed because it is too large Load diff