diff --git a/lib/decorators/api-header.decorator.ts b/lib/decorators/api-header.decorator.ts index cb5378a8f..e16e058dc 100644 --- a/lib/decorators/api-header.decorator.ts +++ b/lib/decorators/api-header.decorator.ts @@ -26,8 +26,8 @@ export function ApiHeader( description: options.description, required: options.required, schema: { - ...(options.schema || {}), - type: 'string' + type: 'string', + ...(options.schema || {}) } }, negate(isUndefined)