Merge pull request #107 from aleclarson/fix/registerSchemaPath

fix: use `type` variable since `rest.type` is always undefined
This commit is contained in:
Marc Laventure
2024-03-20 08:23:00 -07:00
committed by GitHub

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