Skip to content

Commit

Permalink
Merge pull request #42 from alfredringstad/main
Browse files Browse the repository at this point in the history
Pass on `this` when calling defaultExplore
  • Loading branch information
Evgeny Zakharov authored May 2, 2023
2 parents 0683ca2 + 9f5dc19 commit 5ffcdc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openapi/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function patchNestJsSwagger(
}

if (!isZodDto(type)) {
return defaultExplore(type, schemas, schemaRefsStack)
return defaultExplore.call(this, type, schemas, schemaRefsStack)
}

schemas[type.name] = zodToOpenAPI(type.schema)
Expand Down

0 comments on commit 5ffcdc0

Please sign in to comment.