Fix for issue 756
OpenAPI v2 Converter: Null pointer exception when schema field is missing in body parameter
@@ -1048,6 +1048,9 @@ public class SwaggerConverter implements SwaggerParserExtension {
}
public Schema convert(io.swagger.models.Model v2Model) {
+ if (v2Model == null) {
+ return null;
+ }
Schema result;
if (v2Model instanceof ArrayModel) {
