title: Validate JSON response with JSON Schema in ROBOT Framework
body: <p>I have a JSON response which returns all the details of the users in a company. I have converted those responses to JSON schema and kept it in a file name JSONSchema.json.</p>
  <p>Now how do I compare all the responses with the JSON schema ? Can someone please help.</p>
  <p>JSON Data</p>
  <pre><code>[  {
      &quot;Id&quot;: 2,
      &quot;Name&quot;: &quot;Test123&quot;,
      &quot;Status&quot;: &quot;Active&quot;
    },
    {
      &quot;Id&quot;: 3,
      &quot;Name&quot;: &quot;123Test&quot;,
      &quot;Status&quot;: &quot;Active&quot;
      }
      ]
  </code></pre>
  <p>JSON Schema</p>
  <pre><code>{
    &quot;$schema&quot;: &quot;http://json-schema.org/draft-04/schema#&quot;,
    &quot;type&quot;: &quot;array&quot;,
    &quot;items&quot;: [
      {
        &quot;type&quot;: &quot;object&quot;,
        &quot;properties&quot;: {
          &quot;Id&quot;: {
            &quot;type&quot;: &quot;integer&quot;
          },
          &quot;Name&quot;: {
            &quot;type&quot;: &quot;string&quot;
          },
          &quot;Status&quot;: {
            &quot;type&quot;: &quot;string&quot;
          }
        },
        &quot;required&quot;: [
          &quot;Id&quot;,
          &quot;Name&quot;,
          &quot;Status&quot;
        ]
      },
      {
        &quot;type&quot;: &quot;object&quot;,
        &quot;properties&quot;: {
          &quot;Id&quot;: {
            &quot;type&quot;: &quot;integer&quot;
          },
          &quot;Name&quot;: {
            &quot;type&quot;: &quot;string&quot;
          },
          &quot;Status&quot;: {
            &quot;type&quot;: &quot;string&quot;
          }
        },
        &quot;required&quot;: [
          &quot;Id&quot;,
          &quot;Name&quot;,
          &quot;Status&quot;
        ]
      }
    ]
  }
  </code></pre>
  <p>Code</p>
  <pre><code>*** Settings ***
  Library           jsonschema
  
  *** Test Cases ***
  ${get_value}=  GET On Session  xyz  /details  
  
  ${json_response}=     set variable    ${get_value.json()}
  
  ${schema}    Get Binary File    ./myschema.json
  
  ${schema}    evaluate    json.loads('''${schema}''')    json
  
  ${instance}    evaluate    json.loads('''{&quot;Name&quot;:[0,1]}''')    json
   validate    instance=${instance}    schema=${schema}
  </code></pre>
  <p>I have issues with the last two lines of the code.</p>
  <p>I want the my json response compare to the schema as give a pass message when I get compare the Name : Test123 with the type string in JSON schema</p>