title: Postman: schema validation passes even with a wrong response
body: <p>I have the following schema for bellow happy path response </p>
  
  <pre><code>var responseSchema = 
  {
     "type": "object",
     "properties": {
        "value": {
          "type": "object",
          "properties":{
             "items": {
                "type": "array",
                "items": {
                   "type": "object",
                   "properties": {
                      "patientGuid": {"type": "string" },
                      "givenName": {"type": "string" },
                      "familyName": {"type": "string" } ,
                      "combinedName" : {"type": "string" }
                   },
                   "required": ["patientGuid","givenName","familyName"]
                }                 
             }
          }
        }
     }
  };
  </code></pre>
  
  <p>Happy path response: </p>
  
  <pre><code>{
      "value": {
         "items": [
             {
                "patientGuid": "e9530cd5-72e4-4ebf-add8-8df51739d15f",
                "givenName": "Vajira",
                "familyName": "Kalum",
                "combinedName": "Vajira Kalum"
             }
          ],
          "href": "http://something.co",
          "previous": null,
          "next": null,
          "limit": 10,
          "offset": 0,
          "total": 1
      },
      "businessRuleResults": [],
      "valid": true
  }
  </code></pre>
  
  <p>I check if condition to validate whether response schema is correct: </p>
  
  <pre><code>if(responseBody !== null &amp; responseBody.length &gt;0)
  {
      var responseObject = JSON.parse(responseBody);
  
      if(tv4.validate(responseObject, responseSchema))
      {  
        //  do something
      } 
      else
      {
        // log some msg
      }
  }
  </code></pre>
  
  <p>Schema validation condition (nested if) get passed even when I get bellow bad response. </p>
  
  <pre><code>{
      "value": {
          "items": [],
          "href": "http://something.co",
          "previous": null,
          "next": null,
          "limit": 10,
          "offset": 0,
          "total": 0
      },
      "businessRuleResults": [],
      "valid": true
  }
  </code></pre>
  
  <p>Why response schema validation not failed as a response not has required fields?</p>