diff --git a/modules/swagger-compat-spec-parser/src/main/java/io/swagger/parser/SwaggerCompatConverter.java b/modules/swagger-compat-spec-parser/src/main/java/io/swagger/parser/SwaggerCompatConverter.java index bdd2a9586e..561ee75e50 100644 --- a/modules/swagger-compat-spec-parser/src/main/java/io/swagger/parser/SwaggerCompatConverter.java +++ b/modules/swagger-compat-spec-parser/src/main/java/io/swagger/parser/SwaggerCompatConverter.java @@ -319,10 +319,8 @@ else if(items.getRef() != null) { else { if(obj.getRef() != null) output = new RefProperty(obj.getRef()); - else if(type != null) + else if(type != null && !type.equals("void")) output = new RefProperty(type); - else - output = new RefProperty("void"); } }