title: Validating Request Schema With Fastify and AJV
body: <h1>Background</h1>
  <p>I'm building an API with Fastify and it's my first time using JSON schema validation. The idea is that it will both make the server code more efficient and help our developers as they learn how to consume my API.</p>
  <h1>Problem</h1>
  <p>I'm trying to validate a route that allows the client to query kittens by name only. A successful formed query would look <code>/kittens?name=fluffykins</code>.</p>
  <p>My schema for this route looks like this:</p>
  <pre><code>{
    querystring: {
      type: 'object',
      name: { type: 'string' },
    }
  }
  </code></pre>
  <h1>Question</h1>
  <p>How can I make my schema validator accept only queries on <code>name</code> and reject other queries like <code>/kittens?age=1</code>? My preference is for the schema validator to handle it independently of my controller code and for it to also support queries that we may add in the future.</p>
  <p>Thanks!</p>