Skip to content

Commit 8752aba

Browse files
author
Chris Armstrong
committed
Merge branch 'master' of github.com:ferdikoomen/openapi-typescript-codegen into resolve-ref2
2 parents e172cce + 224e8b0 commit 8752aba

File tree

3 files changed

+196
-222
lines changed

3 files changed

+196
-222
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openapi-typescript-codegen",
3-
"version": "0.8.1",
3+
"version": "0.9.0",
44
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
55
"author": "Ferdi Koomen",
66
"homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen",
@@ -71,26 +71,26 @@
7171
},
7272
"devDependencies": {
7373
"@babel/cli": "7.12.16",
74-
"@babel/core": "7.12.16",
75-
"@babel/preset-env": "7.12.16",
76-
"@babel/preset-typescript": "7.12.16",
74+
"@babel/core": "7.12.17",
75+
"@babel/preset-env": "7.12.17",
76+
"@babel/preset-typescript": "7.12.17",
7777
"@rollup/plugin-commonjs": "17.1.0",
78-
"@rollup/plugin-node-resolve": "11.1.1",
78+
"@rollup/plugin-node-resolve": "11.2.0",
7979
"@types/express": "4.17.11",
8080
"@types/jest": "26.0.20",
8181
"@types/js-yaml": "4.0.0",
82-
"@types/node": "14.14.28",
82+
"@types/node": "14.14.31",
8383
"@types/node-fetch": "2.5.8",
8484
"@types/qs": "6.9.5",
85-
"@typescript-eslint/eslint-plugin": "4.15.0",
86-
"@typescript-eslint/parser": "4.14.2",
85+
"@typescript-eslint/eslint-plugin": "4.15.1",
86+
"@typescript-eslint/parser": "4.15.1",
8787
"codecov": "3.8.1",
8888
"eslint": "7.20.0",
89-
"eslint-config-prettier": "7.2.0",
89+
"eslint-config-prettier": "8.0.0",
9090
"eslint-plugin-prettier": "3.3.1",
9191
"eslint-plugin-simple-import-sort": "7.0.0",
9292
"express": "4.17.1",
93-
"form-data": "3.0.0",
93+
"form-data": "4.0.0",
9494
"glob": "7.1.6",
9595
"jest": "26.6.3",
9696
"jest-cli": "26.6.3",
@@ -100,7 +100,7 @@
100100
"qs": "6.9.6",
101101
"rollup": "2.39.0",
102102
"rollup-plugin-terser": "7.0.2",
103-
"rollup-plugin-typescript2": "0.29.0",
103+
"rollup-plugin-typescript2": "0.30.0",
104104
"typescript": "4.1.5"
105105
}
106106
}

src/utils/getOpenApiSpec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import RefParser from 'json-schema-ref-parser';
21
import { load } from 'js-yaml';
2+
import RefParser from 'json-schema-ref-parser';
33
import { extname } from 'path';
44

55
import { readSpec } from './readSpec';
@@ -32,6 +32,5 @@ export async function getOpenApiSpec(input: string): Promise<any> {
3232
}
3333
break;
3434
}
35-
const transformed = await RefParser.bundle(rootObject);
36-
return transformed;
35+
return await RefParser.bundle(rootObject);
3736
}

0 commit comments

Comments
 (0)