title: Using Joi/Hapi, how can one validate the entries in a hash, for all keys?
body: <p>I want to allow my front-end to push a hash of values to the backend. The hash can have any (JSON-legal) key, but the value of each key has to fit a specific schema. Think of it like:</p>
  
  <pre><code>extended: {
    tubers: {
      potato: {weight: 1, cost: 2},
      yam: {weight: 1, cost: 1}
    }
  }
  </code></pre>
  
  <p>So the extended object has a tubers field. The tubers field has many keys, but each value has to have a weight and a cost which are integers.</p>
  
  <p>I can't quite seem to map that into my normal Joi object schema framework.</p>