cyprieng / swagger-parser

Give useful informations about your swagger files
MIT License
62 stars 59 forks source link

Parser assumes that array's items are always defined using '$ref' #33

Open crudo10 opened 7 years ago

crudo10 commented 7 years ago

Functions _example_from_complex_defand get_send_request_correct_body do not verify if the dictionary has ['schema']['items']['$ref']. This causes problems for the following example

  "responses":
    "200":
      "description": >-
        OK
      "schema":
        "items":
          "type": >-
            string
        "type": >-
          array