Closed mtherieau closed 7 years ago
in cases where there is no schema field (e.g. an inner object) then _example_from_complex_def() throws a KeyError exception, like so:
https://travis-ci.org/Trax-air/swagger-parser/jobs/214411452#L693
Test case added in: https://github.com/Trax-air/swagger-parser/pull/39 an example of this issue is in file: tests/no_properties.yaml:
https://github.com/Trax-air/swagger-parser/pull/39/commits/c80700d78111a4723e11ff56c25e4e5d5d56a707#diff-3b7092222dd5ce0fb27f2f2841aa17d1
fix is part of same PR, here: https://github.com/Trax-air/swagger-parser/pull/39/commits/a99373b06c18acd9d5adb440e3c52bac695586c3
in cases where there is no schema field (e.g. an inner object) then _example_from_complex_def() throws a KeyError exception, like so:
https://travis-ci.org/Trax-air/swagger-parser/jobs/214411452#L693
Test case added in: https://github.com/Trax-air/swagger-parser/pull/39 an example of this issue is in file: tests/no_properties.yaml:
https://github.com/Trax-air/swagger-parser/pull/39/commits/c80700d78111a4723e11ff56c25e4e5d5d56a707#diff-3b7092222dd5ce0fb27f2f2841aa17d1
fix is part of same PR, here: https://github.com/Trax-air/swagger-parser/pull/39/commits/a99373b06c18acd9d5adb440e3c52bac695586c3