title: Binding validations does not work when request body is Array of objects
body: <p>Gin's request validation feature is not working when the request body (JSON) represents an array of objects</p>
  
  <p>Ex:</p>
  
  <pre><code>[ 
     { 
        "field1":"aaa",
        "field2":"bbb"
     }
  ]
  </code></pre>
  
  <p>code:</p>
  
  <pre><code>type item struct {
      Field1 string `json:"field1" binding:"required"`
      Field2 string `json:"field2" binding:"required"`
  }
  
  var items []item
  
  err := c.BindJSON(&amp;items)
  </code></pre>
  
  <p>To be more clear, the validation logic in gin is expecting the root object to be a struct and hence bails out when an array type gets passed.</p>
  
  <p>what is best way to validate each object in an array passed in the body?</p>