79384637

Date: 2025-01-24 14:18:03
Score: 2
Natty:
Report link

Swagger uses the provided example values to generate sample requests; if the type doesn't match, it could lead to validation issues.

Can you change the example value for the id in VendorDto to be a valid UUID format instead of '1', since Prisma's id field is a UUID?

For example:

@ApiProperty({ example: '550e8400-e29b-41d4-a716-446655440000', required: false })
@IsOptional()
@IsString()
id?: string;
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Motunrayo Koyejo