← Back to team overview

dhis2-devs team mailing list archive

Sync Anonymous Event Data along with coordinates code fix

 

Hi Morten,

We are doing Anonymous Event data push. As part of that we are also sending
coordinates.

Coordinate object has 4 public properties which are listed below

@JsonProperty( required = true )
@JacksonXmlProperty( isAttribute = true )
public Double getLatitude()

@JsonProperty( required = true )
@JacksonXmlProperty( isAttribute = true )
public Double getLongitude()

public boolean isValid()

public String getCoordinateString()


We don't have @JsonIgnore/@JsonProperty on the Other 2 properties.

Because of this we are getting Error while Deserializing.

Moreover, the JSON Mapper for the class <JacksonEventService>  has
configuration FAIL_ON_UNKNOWN_PROPERTIES  set to *true*

We have fixed this by adding @JsonIgnore on those properties.

We Would like to know if you see any downstream issues with this minor change.



Thanks,

Anil Kumar & Srikanth

Follow ups