title: How to define JSON Schema for Map<String, Integer>?
body: <p>I have a json :</p>
  <pre><code>{
  &quot;itemTypes&quot;: {&quot;food&quot;:22,&quot;electrical&quot;:2},
  &quot;itemCounts&quot;:{&quot;NA&quot;:211}
  }
  </code></pre>
  <p>Here the itemTypes and itemCounts will be common but not the values inside them (food, NA, electrical) which will be keep changing but the will be in the format : Map&lt;String, Integer&gt;</p>
  <p>How do I define Json Schema for such generic structure ?</p>
  <p>I tried :</p>
  <pre><code>&quot;itemCounts&quot;:{
        &quot;type&quot;: &quot;object&quot;
      &quot;additionalProperties&quot;: {&quot;string&quot;, &quot;integer&quot;}
  
      }
  </code></pre>