title: Swagger - If JSON array starts at 0, it doesn't see it as an object
body: <p>I have below JSON array saved in my database in a <code>json</code> column:</p>
  
  <pre><code>{
      "0": {
          "h": "500",
          "w": "400",
          "x": "300",
          "y": "200"
      },
      "1": {
          "h": "500",
          "w": "400",
          "x": "350",
          "y": "100"
      }
  }
  </code></pre>
  
  <p>In my Swagger.yml file, for the body, I have below:</p>
  
  <pre><code>parameters:
          - in: body
            name: body
            description: bla bla
            required: true
            schema:
              type: object
              required:
                - coordinates
              properties:
                coordinates:
                  type: object
                  items:
                    type: object
                    items:
                      type: number
  </code></pre>
  
  <p>If I submit this, I get the following error in my Python app:</p>
  
  <blockquote>
    <p>validation error: [{'h': '500', 'w': '400', 'x': '300', 'y': '200'}, {'h': '500', 'w': '400', 'x': '350', 'y': '100'}] is not of type 'object'</p>
  </blockquote>
  
  <p>If I change the original JSON array in my database to start at "1", like:</p>
  
  <pre><code>{
      "1": {
          "h": "500",
          "w": "400",
          "x": "300",
          "y": "200"
      },
      "2": {
          "h": "500",
          "w": "400",
          "x": "350",
          "y": "100"
      }
  }
  </code></pre>
  
  <p>It is successfully received as:</p>
  
  <pre><code>{"1": {"h": "500", "w": "400", "x": "300", "y": "200"}, "2": {"h": "500", "w": "400", "x": "350", "y": "100"}}
  </code></pre>
  
  <p>What am I doing wrong here?</p>