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