title: Validate array of objects in Node
body: <p>I have an array that looks something like this</p>
  <pre><code>  settings: [
      { key: 'maxImageSize', value: '512' },
      { key: 'maxFileSize', value: '2048' },
      { key: 'searchResultsLimit', value: '10' },
    ]
  </code></pre>
  <p>I would like to validate the value of each key before saving them to a database.</p>
  <p><strong>Example</strong>: <code>searchResultsLimit</code> should be greater than 1 but never exceed 20.</p>
  <p>I am using <code>Objection.js</code> and <code>express-validator</code>.</p>
  <p>Thanks.</p>