feature: traverse ValidationError.children #2363
                  
                    
                      eladchen
                    
                  
                
                  started this conversation in
                Feature Ideas
              
            Replies: 1 comment
-
| 
         I'm moving this to the discussion tab, as we are trying to keep the issue count low. Please see this issue for an explanation.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When a ValidationError is nested (its has children) producing an error message based on the children state requires some
traveseal function.
Proposed solution
Add a utility / a method on each ValidationError which performs a BFS traverse including the path
Note that the above function doesn't evaluate whether a proprety is number, and will produce
some_array.1.some_propertyinstead ofsome_array.[1].some_propertyBeta Was this translation helpful? Give feedback.
All reactions