You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ApiProperty({
type: 'string',
required: true, // or if true by default remove this line
})
@IsString()
name: string;
Right now I modify this manually locally, but we run prisma generate during CI/CD and this overwrites the manually edited DTO's causing errors.
Please consider this for users who want a property in update to be required for each update.
The text was updated successfully, but these errors were encountered:
Please add a decorator that sets an update DTO property to required: true and no ? and @IsOptional()
For example:
Would become
Right now I modify this manually locally, but we run prisma generate during CI/CD and this overwrites the manually edited DTO's causing errors.
Please consider this for users who want a property in update to be required for each update.
The text was updated successfully, but these errors were encountered: