Commit ee46ea3f authored by Matt Wise's avatar Matt Wise
Browse files

fix record api deserialization crash

parent 7e58ceae
Pipeline #29519 passed with stages
in 2 minutes and 34 seconds
......@@ -22,7 +22,7 @@
<groupId>org.opengroup.osdu</groupId>
<artifactId>os-core-common</artifactId>
<version>0.6.5</version>
<version>0.6.6</version>
<packaging>jar</packaging>
......
......@@ -21,6 +21,8 @@ import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Builder;
import org.opengroup.osdu.core.common.model.storage.validation.ValidKind;
import org.opengroup.osdu.core.common.model.storage.validation.ValidNotNullArray;
......@@ -36,6 +38,7 @@ import io.swagger.annotations.ApiModelProperty;
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class Schema {
@ValidKind
......
......@@ -15,12 +15,16 @@
package org.opengroup.osdu.core.common.model.storage;
import org.opengroup.osdu.core.common.model.http.DpsException;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.opengroup.osdu.core.common.http.HttpResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class StorageException extends DpsException {
private static final long serialVersionUID = -3823738766134121467L;
......
......@@ -18,7 +18,10 @@ import lombok.Data;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class UpsertRecords {
private Integer recordCount;
private List<String> recordIds;
......
Markdown is supported
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