Closed unkindypie closed 3 years ago
Hi, the problem is that the request you are sending via postman is not correct.
Use credentialDocuments[0][documentTypeId]
instead of credentialDocuments[0].documentTypeId
It works, thank you. I should have tried it.
Feature request: add support for nested DTOs/arrays of nested DTOs.
For example, we have this DTO:
Then we will try to call route that takes this DTO with the following from data:
Server will get this object:
{ email: 'qwdwd@qwdq.com', firstName: 'eqwdfewf', lastName: 'qwdwedf', birthDate: '2021-06-28T14:41:28.251Z', bio: 'ewfewf', location: 'wefewfewf', jobTitle: 'wefweewf', linkedInProfileUrl: 'qdqwdqwdqwd', expertiseKeywords: [ 'lalala' ], 'credentialDocuments[0].documentTypeId': '1' }
As you can see, array of primitives works correctly while array of objects just creates string keys.