title: Validating API response in Karate framework
body: <p>I want help for validating API response using karate framework.
  I have API’s which are “Independent” on each other.
  I have POST method along with request parameters. when I hit that particular API got the response with different parameters (no single match from request parameter and response parameter).</p>
  
  <p>Now I want to validate response parameter value.</p>
  
  <p>example : request: “method” post</p>
  
  <p>school name: “abcd”
  register date : “1:10:2010″</p>
  
  <p>Response:
  Principle name : ” pqrs”
  Principle Email id “pqrs@gmail.com</p>
  
  <p>now I want to validate that “principle name ” should not be null</p>
  
  <p>I have implemented like this but it it doesn’t work</p>
  
  <pre><code>Feature: School info
  
   Background:
    * url baseUrl
  
   Scenario: check Principles info
  
    Given path ‘School info’
    And request {school name: “abcd” ,register date : “1:10:2010”}
    When method post
    Then status 200
    And match response.response contains {“type”: “Success”,”code”:20000}
    And match response.principle list[*] { “Principle name”: “#notnull”}
  </code></pre>
  
  <p>whenever I run this file it always passes the API <code>wvwnt</code> if the Principle name filed is null.
  It just checks the success message (<code>And match response.response contains {“type”: “Success”, ”code”:20000}</code>) and pass the API </p>