Skip to content

Add 'file' type to schema object metadata interface#3671

Merged
kamilmysliwiec merged 1 commit intonestjs:masterfrom
karianpour:patch-1
Jan 6, 2026
Merged

Add 'file' type to schema object metadata interface#3671
kamilmysliwiec merged 1 commit intonestjs:masterfrom
karianpour:patch-1

Conversation

@karianpour
Copy link
Copy Markdown
Contributor

we need to define file type for file upload

meanwhile I am doing this :


      ApiProperty({
        type: 'file' as any,
        additionalProperties: {
          [propertyKey]: {
            type: 'string',
            format: 'binary',
          },
        },
      })(target, propertyKey);


which works file, but with this PR, it won't be necessary

we need to define file type for file upload
@kamilmysliwiec kamilmysliwiec merged commit 324bf5f into nestjs:master Jan 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants