Skip to content

Commit cf97835

Browse files
haggishjknack
authored andcommitted
Parameter expansion in Swagger building applied only to query/form ref properties fix #1126 (#1146)
1 parent 774bd71 commit cf97835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/jooby-apitool/src/main/java/org/jooby/internal/apitool/SwaggerBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public Swagger build(Swagger base, final List<RouteMethod> routes) throws Except
412412
} else if (it.kind() == RouteParameter.Kind.FORM) {
413413
op.setConsumes(ImmutableList.of(MediaType.form.name(), MediaType.multipart.name()));
414414
}
415-
if (property instanceof RefProperty && it.kind() == RouteParameter.Kind.QUERY || it.kind() == RouteParameter.Kind.FORM) {
415+
if (property instanceof RefProperty && (it.kind() == RouteParameter.Kind.QUERY || it.kind() == RouteParameter.Kind.FORM)) {
416416
return expandParameter(converter, it, it.type(), it.optional())
417417
.stream();
418418
} else {

0 commit comments

Comments
 (0)