title: How to validate an enum value in a json schema validation?
body: <p>the main problem resides on validate a json against a schema that deals with arrays. So, if I put a different value seems to be still valid?</p>
  <p>json schema:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;transactions&quot; : {
      &quot;type&quot; : &quot;array&quot;,
      &quot;items&quot; : {
        &quot;type&quot; : &quot;object&quot;,
        &quot;properties&quot; : {
          &quot;type&quot; : {
            &quot;type&quot; : &quot;string&quot;,
            &quot;enum&quot; : [&quot;BREAK&quot;]
          },
          &quot;required&quot;:[&quot;type&quot;]
        },
        &quot;required&quot;:[&quot;items&quot;]
      }
    }
  }
  </code></pre>
  <p>Input JSON:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;transactions&quot;:[
      {
        &quot;type&quot;:&quot;BREAKDDDDDdddddddddddddddddddddddddddJDJDJDJDJDJDJDJ&quot;
      }
    ]
  }
  </code></pre>
  <p>result:  No errors found. JSON validates against the schema.</p>
  <p>This is wrong as we haven't defined an enum type like &quot;BREAKDDDDD&quot;</p>
  <p><a href="http://www.jsonschemavalidator.net/" rel="nofollow noreferrer">http://www.jsonschemavalidator.net/</a></p>
  <p>Any thoughts on this?</p>