title: FastAPI query parameter using Pydantic model
body: <p>I have a Pydantic model as below</p>
  <pre><code>class Student(BaseModel):
      name:str
      age:int
  </code></pre>
  <p>With this setup, I wish to get the OpenAPI schema as following,</p>
  <p><img src="https://i.stack.imgur.com/ni6Na.png" alt="enter image description here" /></p>
  <p>So, how can I use the Pydantic model to get the from query parameter in FastAPI?</p>