title: Pydantic model for array of jsons
body: <p>I am using FastAPI to write a web service. It is good and fast.</p>
  
  <p>FastAPI is using pydantic models to validate input and output data, everything is good but when I want to declare a nested model for array of jsons like below:</p>
  
  <pre><code>[
     {
        "name": "name1",
        "family": "family1"
     },
     {
        "name": "name2",
        "family": "family2"
     }
  ]
  </code></pre>
  
  <p>I get empty response.</p>
  
  <p>I think there is a problem with my model which is:</p>
  
  <pre><code>class Test(BaseModel):
      name: str
      family: str
      class Config:
          orm_mode = True
  
  class Tests(BaseModel):
      List[Test]
      class Config:
          orm_mode = True
  </code></pre>
  
  <p>So, my question is how should I write a model for array of jsons?</p>