I open ed the same issue yesteerday
@IsArray()
@ArrayNotEmpty()
@ValidateNested({ each: true })
@NotNullable('Flower colors are required.')
@ApiProperty()
flowerColors: FlowerColor[];
flowerColors
[
[
id: 1,
name: 'yellow',
bgColor: '#FFF700 ',
ringColor: 'ring-yellow-200',
orderedId: 1,
sexUsageId: [ 1, 2, 3, 4 ]
],
[
id: 2,
name: 'pink',
bgColor: '#FF6EFF',
ringColor: 'ring-pink-500',
orderedId: 2,
sexUsageId: [ 1, 2, 3, 4 ]
],
Why do I get array of arrays???