title: ASP.NET Web API: Array vs. List<T>
body: <p>I had a property <code>LineItems</code> which was of type <code>List&lt;LineItem&gt;</code>, it was <code>[Required]</code>. We realized that it was possible to send an empty array via JSON (<code>"lineItems": []</code>) which was not what we wanted to achieve with the <code>[Required]</code> attribute.</p>
  
  <p>I've thought about a solution, maybe a custom filter but then I found out that it is possible to use <code>[MinLength(1)]</code>. Unfortunately only in the case of an array (<code>LineItem[]</code>).</p>
  
  <p>My Question now is: Are there any arguments to favor one type over the other regarding the interface?</p>