title: Swagger: Expected type array but found type object at #/paths/../parameters
body: <p>I have this YAML file with a service, but I keep getting some wierd error about receiveing a array instead of a object.</p>
  
  <pre><code>swagger: "2.0"
  info:
      description: ""
      version: 1.0.0
      title: Your project
  basePath: /
  schemes:
    - http
  paths: 
      /trocarProprietarioVeiculo:
          post:
              description: ""
              consumes: 
                -application/json
              produces: 
                -application/json
              parameters:
                -in: body
                  schema: 
                    $ref: "#/definitions/TrocarProprietarioVeiculoChamada"
              responses:
                  "200": 
                    description: ""
                    schema: 
                      $ref: "#/definitions/TrocarProprietarioVeiculoResposta"
  definitions: 
      Resposta:
          type: object
          properties:
              erro:
                  type: integer
              mensagens:
                  type: array
                  items:
                      type: string
      RespostaServico:
          type: object
          properties:
              resposta:
                  $ref: "#/definitions/Resposta"
      TrocarProprietarioVeiculoChamada:
          type: object
          properties:
              chassi:
                  type: string
              codigoCliente:
                  type: integer
              nomeCliente:
                  type: string
      TrocarProprietarioVeiculoResposta:
          type: object
          properties:
              respostaServico:
                  $ref: "#/definitions/RespostaServico"
  </code></pre>
  
  <p>The message error shown is:</p>
  
  <pre><code>  Swagger schema validation failed. 
    Expected type array but found type object at #/paths//trocarProprietarioVeiculo/post/parameters
    Expected type array but found type string at #/paths//trocarProprietarioVeiculo/post/produces
    Expected type array but found type string at #/paths//trocarProprietarioVeiculo/post/consumes
  
  JSON_OBJECT_VALIDATION_FAILED
  </code></pre>
  
  <p>This YAML file I am generating dynamically. Any questions about anything that I may answer, I'd be glad to answer!</p>