From 088d8476379e9ce348bd2670c86eb7c27288e217 Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Sat, 16 Mar 2024 13:32:43 -0400 Subject: [PATCH] fix: use `type` variable since `rest.type` is always undefined --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 5bd1059..6040aae 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -196,9 +196,9 @@ export const registerSchemaPath = ({ description: rest.description as any, content: mapTypesResponse( contentTypes, - rest.type === 'object' || rest.type === 'array' + type === 'object' || type === 'array' ? ({ - type: rest.type, + type, properties, items: value.items, required