feat: support multi-dimensional arrays
See original GitHub issueHello, I am trying to validate the arrays in arrays but I could not find a correct method.
The structure looks like this:
class MyInnerDto {
@IsString()
name: string;
}
class TestDto {
@IsArray({ each: true })
myArray:MyInnerDto[][];
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Question: Passing multidimensional arrays to functions. - Reddit
There are two takeaways here. First, the overarching rule of reading C declarators and expressions is Parens, Postfix, Prefix Second, the ...
Read more >Multidimensional Arrays - MATLAB & Simulink - MathWorks
A multidimensional array in MATLAB® is an array with more than two dimensions. In a matrix, the two dimensions are represented by rows...
Read more >Compare multidimensional arrays - TechNet - Microsoft
I've got a problem with multidimensional arrays. I need to compare two multidimensional arrays as follows: $array1 number word. $array2
Read more >Multidimensional array terminology - Math Stack Exchange
I know you are asking about arrays and not multidimensional matrices, but perhaps this can help. If you fix an index of the...
Read more >Multidimensional Arrays | Using Arrays in PHP - InformIT
Arrays do not have to be a simple list of keys and values—each location in the array can hold another array. This way,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello,
I’ve the same kind of issue with Map and Array values. The test case below show validation error on
nestedMap
but not onnestedWithArray
. Is there another tips to validate this kind of structure ? or it’s a bug ?With
class-validator": "0.11.0"
Thanks
Any word on this? Can anyone suggest a workaround using custom validators that can do the needful? I need to validate multi dimensional arrays of various types, ie. enums, strings, numbers, objectids (mongodb)