Skip to content

Commit

Permalink
fix: use type variable since rest.type is always undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Mar 16, 2024
1 parent 12ec0e1 commit 088d847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Expand Up @@ -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
Expand Down

0 comments on commit 088d847

Please sign in to comment.