idProofs = [ { name: 'PAN Card', number: '22TB12CD', fileName: ['22TB12CD.png', '22TB12CD.png','22TB12CD.png' ] }, { name: 'Aadhar Card', number: '359821231', fileName: ['359821231.png'] }, { name: 'Passport', number: 'AT123ZS', fileName: ['AT123ZS.png'] }, ];
I don't know how to put this is in my dto. Here i used multipart/form-data for file upload,so other fields didn't get works . I used this approach and also defined as class but only getting blank field in json data.How to read this data using swagger dto in nestjs.
@Prop()
idProofDetails: [{
name: { type: string },
number: { type: string },
fileName: { type: string }
}];