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

Check definition instance before validating required properties #48

Closed nestabur closed 6 years ago

nestabur commented 6 years ago

Enhanced definition validation checking the instance of the actual definition before validating required properties (as might throw a class cast exception if the actual definition is not of type ModelImpl)

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 89.457% when pulling dea72bb2006924e1beda314d0441d36475da9535 on channelsuite:validate-definition-avoid-classcastexception into ba1594c73717efdce9548359eb6f19beb1512eb3 on RobWin:master.