Skip to content

Commit 808f18b

Browse files
Alan-ChaErikWittern
authored andcommitted
Improve resolveRef function
Signed-off-by: Alan Cha <[email protected]>
1 parent f817138 commit 808f18b

File tree

4 files changed

+44
-19
lines changed

4 files changed

+44
-19
lines changed

packages/openapi-to-graphql/lib/oas_3_tools.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export declare function countOperationsWithPayload(oas: Oas3): number;
5454
/**
5555
* Resolves the given reference in the given object.
5656
*/
57-
export declare function resolveRef(ref: string, obj: object, parts?: string[]): any;
57+
export declare function resolveRef(ref: string, oas: Oas3): any;
5858
/**
5959
* Returns the base URL to use for the given operation.
6060
*/

packages/openapi-to-graphql/lib/oas_3_tools.js

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

0 commit comments

Comments
 (0)