title: Karate: simplest way to validate value of array json response should not be empty
body: <pre><code>response= [
  {
  &quot;id&quot;: &quot;123&quot;,
  &quot;name: &quot;user1&quot;,
  &quot;location&quot;: &quot;USA&quot;
  },
  {
  &quot;id&quot;: &quot;133&quot;,
  &quot;name: &quot;user2&quot;,
  &quot;location&quot;: &quot;CANADA&quot;
  },
  {
  &quot;id&quot;: &quot;&quot;,
  &quot;name&quot;: &quot;user3&quot;,
  &quot;location&quot;: &quot;INDIA&quot;
  }
  ]
  </code></pre>
  <p>I am trying to validate the above json array using the schema and want to validate that values of my keys should not be empty or blank.</p>
  <p>I am using the below code:</p>
  <pre><code>* def schema = {&quot;id&quot;: &quot;#notnull&quot;, &quot;name&quot;: &quot;#notnull&quot;, &quot;location&quot;: &quot;#notnull&quot;}
  * match each response contains schema
  </code></pre>
  <p>But even though my response has &quot;id&quot;:&quot;&quot; -- id is empty/blank in the 3rd index in json array. Still I get a pass in my scenario.
  Is this the correct way or is there any other way to handle empty values in schema for a json array response.</p>
  <p>Your help would be appreciated.
  Thank you</p>