swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

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

Open crudo10 opened this issue 8 years ago • 0 comments

Functions _example_from_complex_def and 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

crudo10 avatar Nov 20 '16 23:11 crudo10