title: JSON Schema validation: validate array of objects
body: <p>I get following JSON and would like to validate it.</p>
  
  <pre><code>[
      {
          "remindAt": "2015-08-23T18:53:00+02:00",
          "comment": "Postman Comment"
      },
      {
          "remindAt": "2015-08-24T18:53:00+02:00",
          "comment": "Postman Comment"
      }
  ]
  </code></pre>
  
  <p>My schema looks currently as following</p>
  
  <pre><code>{
      "type": "array",
      "required": true,
      "properties": {
          "type": "object",
          "required": false,
          "additionalProperties": false,
          "properties": {
              "remindAt": {
                  "required": true,
                  "type": "string",
                  "format": "date-time"
              },
              "comment": {
                  "required": true,
                  "type": "string"
              }
          }
      }
  }
  </code></pre>
  
  <p>This is not working. It validates to true even if I remove comment from JSON ddata. I guess structure of my schema file is wrong. </p>
  
  <p>For validating I use following library 
  <a href="https://packagist.org/packages/justinrainbow/json-schema" rel="nofollow">https://packagist.org/packages/justinrainbow/json-schema</a></p>
  
  <p>Can please someone explain to me what I do wrong and how I properly validate given JSON data? </p>
  
  <p>Thanks in advance</p>