fix: use type variable since rest.type is always undefined

This commit is contained in:
Alec Larson
2024-03-16 13:32:43 -04:00
parent 12ec0e11d1
commit 088d847637

View File

@@ -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