RobWin / assertj-swagger

A Swagger assertj test library which compares a contract-first Swagger YAML/JSON file with a code-first Swagger JSON
Apache License 2.0
171 stars 44 forks source link

Schema resolver avoid nullpointerexception #47

Closed nestabur closed 6 years ago

nestabur commented 6 years ago

When in the inheritance tree there is a definition without properties but extending another specifying the type "object", a null pointer exception is thrown due to the fact that the swagger model returns null when getting the properties (instead of an empty map)

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 89.612% when pulling 7b3221dca8903249d72bb168e11130c5b2abc3cf on channelsuite:schema-resolver-avoid-nullpointerexception into ba1594c73717efdce9548359eb6f19beb1512eb3 on RobWin:master.