title: Swagger complex response model with dynamic key value hash maps
body: <p>I'm struggling with the syntax of swagger to describe a response type. What I'm trying to model is a hash map with dynamic keys and values. This is needed to allow a localization. The languages may vary, but english should always be provided.</p>
  
  <p>The response would look like this in JSON:</p>
  
  <pre><code>{
    id: "1234",
    name: {
      en: "english text",
      de: "Deutscher Text"
    }
  }
  </code></pre>
  
  <p>My first try was looking like that, but I have no idea how to write the part for the name. AdditionalProperties seems to be a key, but I can't wrap my head around it. Also the requirement for english text is a mystery to me in this syntax and the example also does not seem to work as expected. It generates an empty $folded: in the UI.</p>
  
  <pre><code>delayReason:
    type: object
    properties:
      id:
        type: string
        description: Identifier for a delay reason.
      name:
        type: object
        additionalProperties: 
          type: string
    required: [id, name]
    example:
      id: 123
      name: 
        en: english text
        de: Deutscher Text
  </code></pre>
  
  <p>But this produces: 
  <a href="https://i.stack.imgur.com/eeOmY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eeOmY.png" alt="swagger editor result"></a></p>
  
  <p>There is also no clue in this that the result will have a language code as a key and the text as the value of the hash map.</p>