Skip to content

Commit

Permalink
Merge pull request #107 from aleclarson/fix/registerSchemaPath
Browse files Browse the repository at this point in the history
fix: use `type` variable since `rest.type` is always undefined
  • Loading branch information
marclave committed Mar 20, 2024
2 parents 7c4a1b0 + 088d847 commit df7abe1
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 df7abe1

Please sign in to comment.