Skip to content

Commit

Permalink
Default to true to maintain backwards compat
Browse files Browse the repository at this point in the history
Signed-off-by: Arne Seime <arne.seime@gmail.com>
  • Loading branch information
seime committed Mar 10, 2024
1 parent 5a05833 commit 180e4a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
Expand Down Expand Up @@ -155,7 +156,7 @@ public Response delete(@PathParam("thingUID") @Parameter(description = "thingUID
@Operation(operationId = "getDiscoveredInboxItems", summary = "Get all discovered things.", responses = {
@ApiResponse(responseCode = "200", description = "OK", content = @Content(array = @ArraySchema(schema = @Schema(implementation = DiscoveryResultDTO.class)))) })
public Response getAll(
@QueryParam("includeIgnored") @Parameter(description = "If true, include ignored inbox entries. Defaults to false") boolean includeIgnored) {
@QueryParam("includeIgnored") @DefaultValue("true") @Parameter(description = "If true, include ignored inbox entries. Defaults to true") boolean includeIgnored) {
Stream<DiscoveryResult> discoveryStream = inbox.getAll().stream();
if (!includeIgnored) {
discoveryStream = discoveryStream
Expand Down

0 comments on commit 180e4a3

Please sign in to comment.