title: JSON Schema - Show string conditionally, if array has certain value
body: <p>I am trying to create a JSON-form in ReTool, with a JSON Schema.<br />
  The form contains a multiselect checkbox, with the following values:<br />
  <code>[&quot;kick-scooter&quot;, &quot;bike&quot;, &quot;e-bike&quot;, &quot;moped&quot;, &quot;car&quot;]</code></p>
  <p>Depending on the selection, a string input-field should be visible to enter additional information. So, if bike and moped are selected, these two fields should be visible and the rest invisible.</p>
  <p>I came up with the following JSON Schema, but it does not yield the expected result:</p>
  <pre><code>{
    &quot;type&quot;: &quot;object&quot;,
    &quot;required&quot;: [],
  
    &quot;properties&quot;: {
      &quot;vehicle_type&quot;: {
        &quot;type&quot;: &quot;array&quot;,
        &quot;title&quot;: &quot;Type of vehicle&quot;,
        &quot;items&quot;: {
          &quot;type&quot;: &quot;string&quot;,
          &quot;enum&quot;: [&quot;kick-scooter&quot;, &quot;bike&quot;, &quot;e-bike&quot;, &quot;moped&quot;, &quot;car&quot;]
        },
        &quot;uniqueItems&quot;: true
      }   
    },
  
    &quot;dependencies&quot;: {
      &quot;vehicle_type&quot;: {
        &quot;allOf&quot;: [
          {
            &quot;properties&quot;: { 
              &quot;vehicle_type&quot;: { &quot;contains&quot;: { &quot;enum&quot;: [&quot;bike&quot;] } },
              &quot;add_info_bike&quot;: {&quot;type&quot;: &quot;string&quot;}
            }                    
          },
          {
            &quot;properties&quot;: { 
              &quot;vehicle_type&quot;: { &quot;contains&quot;: { &quot;enum&quot;: [&quot;kick-scooter&quot;] } },
              &quot;add_info_kickscooter&quot;: {&quot;type&quot;: &quot;string&quot;}
            }                    
          }
        ]   
      }  
    }
  }
  </code></pre>
  <p>However, if I use <code>oneOf</code> instead of <code>allOf</code>, it works as intended (for <code>oneOf</code>), which means if either only bike or only kick-scooter is selected, the corresponding input field is shown.</p>
  <p>I already tried numerous similar variations, but this one seems to be as close as I can get on my own, so any input and /or advice is very appreciated.</p>