From 9f5dc199f4868912f4e1a9c4e55661475e742ac1 Mon Sep 17 00:00:00 2001 From: Alfred Ringstad Date: Wed, 26 Apr 2023 13:46:22 +0200 Subject: [PATCH] fix defaultExplore call --- src/openapi/patch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openapi/patch.ts b/src/openapi/patch.ts index 3a725b2..7e03802 100644 --- a/src/openapi/patch.ts +++ b/src/openapi/patch.ts @@ -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)