title: Newtonsoft.Json.Schema is not validating JSON input correctly against a JSON schema
body: <p>In below example schema validation is returning <code>true</code> for the below payload JSON, even though:</p>
  <ul>
  <li>&quot;family_name&quot; and &quot;given_name&quot; are required fields in the &quot;name&quot; property but are missing in the payload JSON.</li>
  <li>&quot;given_name&quot; should be an array of strings but is a simple string in the payload JSON.</li>
  </ul>
  <p>Why are these errors not getting caught?</p>
  <p>We are using <a href="https://www.newtonsoft.com/jsonschema" rel="nofollow noreferrer">Newtonsoft.Json.Schema</a> for validation.</p>
  <p>JSON Schema :</p>
  <pre><code>{
      &quot;$schema&quot;: &quot;http://json-schema.org/draft-07/schema#&quot;,
      &quot;type&quot;: &quot;object&quot;,
      &quot;properties&quot;: {
          &quot;article_metadata&quot;: {
              &quot;description&quot;: &quot;article metadata for descrepancy checks&quot;,
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;authors&quot;: {
                      &quot;description&quot;: &quot;authors details&quot;,
                      &quot;type&quot;: &quot;object&quot;,
                      &quot;properties&quot;: {
                          &quot;list&quot;: {
                              &quot;type&quot;: &quot;array&quot;,
                              &quot;items&quot;: {
                                  &quot;sequence_id&quot;: {
                                      &quot;type&quot;: &quot;string&quot;
                                  },
                                  &quot;guid&quot;: {
                                      &quot;description&quot;: &quot;32 digit unique id to identify author&quot;,
                                      &quot;type&quot;: &quot;string&quot;
                                  },
                                  &quot;name&quot;: {
                                      &quot;type&quot;: &quot;object&quot;,
                                      &quot;properties&quot;: {
                                          &quot;prefix&quot;: {
                                              &quot;type&quot;: &quot;string&quot;
                                          },
                                          &quot;given_name&quot;: {
                                              &quot;type&quot;: &quot;array&quot;,
                                              &quot;minItems&quot;: 1,
                                              &quot;items&quot;: {
                                                  &quot;type&quot;: &quot;string&quot;
                                              }
                                          },
                                          &quot;family_name&quot;: {
                                              &quot;type&quot;: &quot;string&quot;
                                          },
                                          &quot;required&quot;: [
                                              &quot;family_name&quot;,
                                              &quot;given_name&quot;
                                          ]
                                      }
                                  },
                                  &quot;required&quot;: [
                                      &quot;sequence_id&quot;,
                                      &quot;name&quot;
                                  ]
                              }
                          }
                      }
                  }
              }
          }
      }
  }
  </code></pre>
  <p>Payload JSON:</p>
  <pre><code>{
      &quot;article_metadata&quot;: {
          &quot;authors&quot;: {
              &quot;list&quot;: [{
                      &quot;sequence_id&quot;: &quot;Au1&quot;,
                      &quot;guid&quot;: &quot;00208406-c337-4f58-9245-9455d8852a00&quot;,
                      &quot;affiliation_id&quot;: &quot;Aff1&quot;,
                      &quot;name&quot;: {
                          &quot;prefix&quot;: &quot;Ms.&quot;,
                          &quot;family_name&quot;: &quot;Hole&quot;
                      }
                  }, {
                      &quot;sequence_id&quot;: &quot;Au2&quot;,
                      &quot;guid&quot;: &quot;32b8a598-2fb5-42f1-ad0e-94ce2fc00a8f&quot;,
                      &quot;affiliation_id&quot;: &quot;Aff2&quot;,
                      &quot;name&quot;: {
                          &quot;prefix&quot;: &quot;Mr.&quot;,
                          &quot;given_name&quot;: &quot;Anurag&quot;
                      }
                  }
              ]
          }
      }
  }
  </code></pre>