Skip to content

Commit b0d4c7d

Browse files
author
Simon Rogers
committed
Revert swagger-codegen version changes that are causing build errors
1 parent fd4c3b5 commit b0d4c7d

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

packages/openapi/install_swagger.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mkdir, access, constants } from 'fs/promises'
1+
import fs from 'fs/promises'
22
import { exit } from 'process'
33
import wget from 'wget-improved'
44

@@ -30,15 +30,17 @@ async function get(url, path) {
3030

3131
async function checkInstall() {
3232
console.log('Checking/Installing swagger codegen.')
33-
await mkdir('jars').catch((e) => {
33+
await fs.mkdir('jars').catch((e) => {
3434
if (e.code === 'EEXIST') return
3535
else throw e
3636
})
3737

3838
const srcPath =
39-
'https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.68/swagger-codegen-cli-3.0.68.jar'
39+
'https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.34/swagger-codegen-cli-3.0.34.jar'
4040
const swaggerFilename = 'swagger-codegen-cli.jar'
41-
await access(`jars/${swaggerFilename}`, constants.R_OK).catch(async () => get(srcPath, `jars/${swaggerFilename}`))
41+
await fs
42+
.access(`jars/${swaggerFilename}`, fs.constants.R_OK)
43+
.catch(async () => get(srcPath, `jars/${swaggerFilename}`))
4244
}
4345

4446
await checkInstall()

packages/openapi/openapitools.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"$schema": "../node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3-
"spaces": 2,
4-
"generator-cli": {
5-
"version": "7.13.0"
6-
}
2+
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3+
"spaces": 2,
4+
"generator-cli": {
5+
"version": "6.2.0"
6+
}
77
}

packages/openapi/run_server_tests.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { exec } from 'child_process'
88
import { exit } from 'process'
99
import { join } from 'path'
1010
import { createServer } from 'http'
11-
// eslint-disable-next-line n/no-missing-import
1211
import { expressAppConfig } from './server/node_modules/oas3-tools/dist/index.js'
1312

1413
const testTimeout = 120000

0 commit comments

Comments
 (0)