mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2025-12-06 00:36:10 +00:00
fix: use type variable since rest.type is always undefined
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user