Skip to content

Commit

Permalink
fix(): ApiHeader has 'type: String' as default
Browse files Browse the repository at this point in the history
In the ApiHeader schema, the default type is String, but it should not be overridden to String
  • Loading branch information
alenap93 committed Jan 13, 2024
1 parent 8a3594c commit 4f1681a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/decorators/api-header.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function ApiHeader(
description: options.description,
required: options.required,
schema: {
...(options.schema || {}),
type: 'string'
type: 'string',
...(options.schema || {})
}
},
negate(isUndefined)
Expand Down

0 comments on commit 4f1681a

Please sign in to comment.