cyprieng / swagger-parser

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

AttributeError exception in _example_from_array_spec() when array items references simple type defintion #42

Closed mtherieau closed 7 years ago

mtherieau commented 7 years ago

in cases where an array items field references a simple type definition then _example_from_array_spec() throws an AttributeError exception like so:

https://travis-ci.org/Trax-air/swagger-parser/jobs/214411452#L756

Test case added in: https://github.com/Trax-air/swagger-parser/pull/39 an example of this issue is in file: tests/array_ref_simple.yaml

fix is part of same PR here: https://github.com/Trax-air/swagger-parser/pull/39/commits/e52a7f83b85b7eed2e5f4e85b6e05082f0ee1468