Skip to content

Commit 8898129

Browse files
authored
Merge pull request #109 from SocketDev/opeanapi-typescript-rebase
bump openapi-typescript
2 parents e3b7d5f + 4c6e2b5 commit 8898129

File tree

3 files changed

+67
-76
lines changed

3 files changed

+67
-76
lines changed

build/generate-types.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Promise.resolve().then(async () => {
66
const { default: openapiTS } = await import('openapi-typescript')
77

88
const localPath = path.resolve(__dirname, '../openapi.json')
9-
const output = await openapiTS(localPath, {
10-
formatter (node) {
11-
if (node.format === 'binary') {
9+
const output = await openapiTS(localPath, {
10+
transform (schemaObject) {
11+
if ('format' in schemaObject && schemaObject.format === 'binary') {
1212
return 'never'
1313
}
1414
}

package-lock.json

Lines changed: 62 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"types/**/*.d.ts"
2323
],
2424
"engines": {
25-
"node": "^14.18.0 || >=16.0.0"
25+
"node": ">=16.10.0"
2626
},
2727
"dependencies": {
2828
"formdata-node": "^5.0.0",
@@ -58,7 +58,7 @@
5858
"mocha": "^10.1.0",
5959
"nock": "^13.2.9",
6060
"npm-run-all2": "^6.0.4",
61-
"openapi-typescript": "^5.4.1",
61+
"openapi-typescript": "^6.3.2",
6262
"type-coverage": "^2.24.1",
6363
"typescript": "~5.0.4"
6464
},

0 commit comments

Comments
 (0)