title: JSON Schema - Can not convert Array to Boolean
body: <p>I'm testing NewtonSoft's JsonSchema package and have the following code</p>
  <pre><code>string schemaJson = File.ReadAllText(&quot;c:\\temp\\schema.txt&quot;);
  JsonSchema schema = JsonSchema.Parse(schemaJson);
  </code></pre>
  <p>When I test the schema on <a href="https://www.jsonschemavalidator.net/" rel="nofollow noreferrer">https://www.jsonschemavalidator.net/</a> it executes correctly, but when I run the above code locally I get an <code>ArgumentException</code> &quot;Can not convert Array to Boolean&quot;.</p>
  <p>Here is the schema:</p>
  <pre><code>{
    &quot;$schema&quot;: &quot;http://json-schema.org/draft-07/schema&quot;,
    &quot;$id&quot;: &quot;http://example.com/root.json&quot;,
    &quot;type&quot;: &quot;object&quot;,
    &quot;title&quot;: &quot;The Root Schema&quot;,
    &quot;description&quot;: &quot;The root schema is the schema that comprises the entire JSON document.&quot;,
    &quot;default&quot;: {},
    &quot;required&quot;: [
      &quot;checked&quot;,
      &quot;dimensions&quot;,
      &quot;id&quot;,
      &quot;name&quot;,
      &quot;price&quot;,
      &quot;tags&quot;
    ],
    &quot;properties&quot;: {
      &quot;checked&quot;: {
        &quot;$id&quot;: &quot;#/properties/checked&quot;,
        &quot;type&quot;: &quot;boolean&quot;,
        &quot;title&quot;: &quot;The Checked Schema&quot;,
        &quot;description&quot;: &quot;An explanation about the purpose of this instance.&quot;,
        &quot;default&quot;: false,
        &quot;examples&quot;: [
          false
        ]
      },
      &quot;dimensions&quot;: {
        &quot;$id&quot;: &quot;#/properties/dimensions&quot;,
        &quot;type&quot;: &quot;object&quot;,
        &quot;title&quot;: &quot;The Dimensions Schema&quot;,
        &quot;description&quot;: &quot;An explanation about the purpose of this instance.&quot;,
        &quot;default&quot;: {},
        &quot;examples&quot;: [
          {
            &quot;height&quot;: 10.0,
            &quot;width&quot;: 5.0
          }
        ],
        &quot;required&quot;: [
          &quot;width&quot;,
          &quot;height&quot;
        ],
        &quot;properties&quot;: {
          &quot;width&quot;: {
            &quot;$id&quot;: &quot;#/properties/dimensions/properties/width&quot;,
            &quot;type&quot;: &quot;integer&quot;,
            &quot;title&quot;: &quot;The Width Schema&quot;,
            &quot;description&quot;: &quot;An explanation about the purpose of this instance.&quot;,
            &quot;default&quot;: 0,
            &quot;examples&quot;: [
              5
            ]
          },
          &quot;height&quot;: {
            &quot;$id&quot;: &quot;#/properties/dimensions/properties/height&quot;,
            &quot;type&quot;: &quot;integer&quot;,
            &quot;title&quot;: &quot;The Height Schema&quot;,
            &quot;description&quot;: &quot;An explanation about the purpose of this instance.&quot;,
            &quot;default&quot;: 0,
            &quot;examples&quot;: [
              10
            ]
          }
        }
      },
      &quot;id&quot;: {
        &quot;$id&quot;: &quot;#/properties/id&quot;,
        &quot;type&quot;: &quot;integer&quot;,
        &quot;title&quot;: &quot;The Id Schema&quot;,
        &quot;description&quot;: &quot;An explanation about the purpose of this instance.&quot;,
        &quot;default&quot;: 0,
        &quot;examples&quot;: [
          1
        ]
      },
      &quot;name&quot;: {
        &quot;$id&quot;: &quot;#/properties/name&quot;,
        &quot;type&quot;: &quot;string&quot;,
        &quot;title&quot;: &quot;The Name Schema&quot;,
        &quot;description&quot;: &quot;An explanation about the purpose of this instance.&quot;,
        &quot;default&quot;: &quot;&quot;,
        &quot;examples&quot;: [
          &quot;A green door&quot;
        ]
      },
      &quot;price&quot;: {
        &quot;$id&quot;: &quot;#/properties/price&quot;,
        &quot;type&quot;: &quot;number&quot;,
        &quot;title&quot;: &quot;The Price Schema&quot;,
        &quot;description&quot;: &quot;An explanation about the purpose of this instance.&quot;,
        &quot;default&quot;: 0,
        &quot;examples&quot;: [
          12.5
        ]
      },
      &quot;tags&quot;: {
        &quot;$id&quot;: &quot;#/properties/tags&quot;,
        &quot;minItems&quot;: 3,
        &quot;type&quot;: &quot;array&quot;,
        &quot;title&quot;: &quot;The Tags Schema&quot;,
        &quot;description&quot;: &quot;An explanation about the purpose of this instance.&quot;,
        &quot;default&quot;: [],
        &quot;examples&quot;: [
          [
            &quot;home&quot;,
            &quot;green&quot;
          ]
        ],
        &quot;items&quot;: {
          &quot;$id&quot;: &quot;#/properties/tags/items&quot;,
          &quot;type&quot;: &quot;string&quot;,
          &quot;title&quot;: &quot;The Items Schema&quot;,
          &quot;description&quot;: &quot;An explanation about the purpose of this instance.&quot;,
          &quot;default&quot;: &quot;&quot;,
          &quot;examples&quot;: [
            &quot;home&quot;,
            &quot;green&quot;
          ]
        }
      }
    }
  }
  </code></pre>
  <p>and here is the (invalid) JSON that I use on the website to test the schema validation:</p>
  <pre><code>{
      &quot;checked&quot;: &quot;false&quot;,
      &quot;dimensions&quot;: {
          &quot;width&quot;: 5,
          &quot;height&quot;: 10
      },
      &quot;id&quot;: 1,
      &quot;name&quot;: &quot;A green door&quot;,
      &quot;price&quot;: 12.5,
      &quot;tags&quot;: [
          &quot;home&quot;,
          &quot;green&quot;
      ]
  }
  </code></pre>