Skip to content

Commit 8ea9aaf

Browse files
committed
- Bumped version
1 parent 1ef9bd9 commit 8ea9aaf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
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",

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)