Commit 74e09067 authored by neelesh thakur's avatar neelesh thakur
Browse files

Merge branch 'include-null' into 'master'

include null in query response

See merge request !117
parents 6ca8e410 be64b0a7
Pipeline #64721 failed with stages
in 9 minutes and 18 seconds
......@@ -14,6 +14,7 @@
package org.opengroup.osdu.core.common.model.search;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
......@@ -30,6 +31,7 @@ import java.util.Map;
public class CursorQueryResponse {
private String cursor;
@JsonInclude(JsonInclude.Include.ALWAYS)
private List<Map<String, Object>> results;
private long totalCount;
......
......@@ -14,6 +14,7 @@
package org.opengroup.osdu.core.common.model.search;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;
import com.google.gson.Gson;
......@@ -34,6 +35,7 @@ import java.util.Map;
@Builder
public class QueryResponse {
@JsonInclude(JsonInclude.Include.ALWAYS)
private List<Map<String, Object>> results = new ArrayList<>();
private List<AggregationResponse> aggregations = new ArrayList<>();
private long totalCount;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment