title: Validate jsonschema against a json array having multiple elements using postman and tv4
body: <p>Below is my JSON schema </p>
  
  <pre><code>{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "array",
    "items": [
      {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "stations": {
            "type": "array",
            "items": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "serial_number": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "serial_number",
                  "name"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "stations"
        ]
      }
    ]
  }
  </code></pre>
  
  <p>Below is the json to validate </p>
  
  <pre><code>[
      {
          "id": 1,
          "name": "Test location",       
          "stations": [
              {
                  "id": 1,
                  "serial_number": "TEST001",
                  "name": "TEST-STN!"                
              }
          ]
  
      },
      {
          "id": 2,
          "name": "Test location2"    
      }
  
  ]
  </code></pre>
  
  <p>Here the element "stations" is marked as required in schema, but it is missing in the second Item of json. still tv4 validation is passed.</p>
  
  <p>What we really required is, it should fail the validation because the station element is missing in the second Item</p>
  
  <p>The observation is IF station element is <strong>NOT present</strong> in any of the JSON Item, then validation is failing. But if the station element is <strong>present</strong> in one of the item then validation is passed</p>
  
  <pre><code>pm.test("Login Validation", function() { pm.expect(tv4.validate(pm.response.json(), pm.environment.get('schema.json'), true, true), tv4.error).to.be.true;});
  </code></pre>
  
  <p>I tried tv4 option "checkRecursive" with value both true and false...Still it passing the validation</p>
  
  <p>Any help is appreciated</p>