Skip to content

Commit 6c8c04a

Browse files
committed
Merge pull request #34 from xhh/void-response
Fix issue that "void" response is treated as model
2 parents 9f88afb + df235ce commit 6c8c04a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/swagger-compat-spec-parser/src/main/java/io/swagger/parser/SwaggerCompatConverter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,8 @@ else if(items.getRef() != null) {
319319
else {
320320
if(obj.getRef() != null)
321321
output = new RefProperty(obj.getRef());
322-
else if(type != null)
322+
else if(type != null && !type.equals("void"))
323323
output = new RefProperty(type);
324-
else
325-
output = new RefProperty("void");
326324
}
327325
}
328326

0 commit comments

Comments
 (0)