Skip to content

Commit 1e862d3

Browse files
committed
fix: json
1 parent 9ee5dc0 commit 1e862d3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
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": "bcgov-typescript-codegen",
3-
"version": "1.0.0",
3+
"version": "1.0.5",
44
"description": "Library that generates Typescript clients based on the openapi-typescript-codegen.",
55
"author": "Ferdi Koomen, Craig Yu",
66
"homepage": "https://github.com/bcgov/typescript-codegen",

src/utils/getOpenApiSpec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export const getOpenApiSpec = async (location: string): Promise<any> => {
1212
const isUrl = location.startsWith('http://') || location.startsWith('https://');
1313

1414
if (isUrl) {
15-
// Avoid resolving self-referencing $refs in URL-based specs
16-
return await RefParser.parse(location);
15+
return await RefParser.dereference(location);
1716
}
1817

1918
const absolutePath = (await exists(location)) ? resolve(location) : location;

0 commit comments

Comments
 (0)