Skip to content

Commit

Permalink
CAMEL-9828: Swagger seems to inject empty headers for query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Apr 7, 2016
1 parent 18eef8c commit f465ab5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ private void addRouteDefinition(CamelContext camelContext, List<RouteDefinition>
}
// register all the default values for the query parameters
for (RestOperationParamDefinition param : verb.getParams()) {
if (RestParamType.query == param.getType() && param.getDefaultValue() != null) {
if (RestParamType.query == param.getType() && ObjectHelper.isNotEmpty(param.getDefaultValue())) {
binding.addDefaultValue(param.getName(), param.getDefaultValue());
}
}
Expand Down

0 comments on commit f465ab5

Please sign in to comment.