title: Override inherited json schema
body: <p>how can I override the validation rules which are defined in a json schema which is inherited by the &quot;allOf&quot; keyword?</p>
  <p>Example:</p>
  <pre><code>{
    &quot;$schema&quot;: &quot;http://json-schema.org/draft-06/schema&quot;,
    &quot;title&quot;: &quot;My JSON Schema&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;definitions&quot;: {
      &quot;a&quot;: {
        &quot;type&quot;: &quot;object&quot;,
        &quot;properties&quot;: {
          &quot;b&quot;: {
            &quot;type&quot;: &quot;object&quot;,
            &quot;properties&quot;: {
              &quot;c&quot;: {
                &quot;type&quot;: &quot;string&quot;,
                &quot;minLength&quot;: 1,
                &quot;maxLength&quot;: 100
              }
            },
            &quot;required&quot;: [
              &quot;c&quot;
            ]
          }
        },
        &quot;required&quot;: [
          &quot;b&quot;
        ]
      }
    },
    &quot;properties&quot;: {
      &quot;main&quot;: {
        &quot;type&quot;: &quot;object&quot;,
        &quot;allOf&quot;: [
          {
            &quot;$ref&quot;: &quot;#/definitions/a&quot;
          }
        ]
      },
      &quot;sub&quot;: {
        &quot;type&quot;: &quot;object&quot;,
        &quot;allOf&quot;: [
          {
            &quot;$ref&quot;: &quot;#/definitions/a&quot;
          }
        ]
      }
    }
  }
  </code></pre>
  <p>The json schema defines two objects:</p>
  <ul>
  <li>main</li>
  <li>sub</li>
  </ul>
  <p>Both objects inherit their properties from the defined object &quot;a&quot;
  But the object &quot;sub&quot; should have other validation rules for property b.c (currently it is minLength 1 and maxLength 100).</p>
  <p>So of course following json is invalid:</p>
  <pre><code>{
    &quot;main&quot; :{
      &quot;b&quot;: {
        &quot;c&quot;: &quot;This property has a min length&quot;
      }
    },&quot;sub&quot; : {
      &quot;b&quot;: {
        &quot;c&quot;: &quot;&quot;
      }
    }
  }
  </code></pre>
  <p>How can I override the validation rules for property b.c?</p>