Fixing GeoJson validation
This commit is contained in:
parent
81218d3e5c
commit
98aec729cc
|
@ -591,7 +591,7 @@ public class Validator {
|
||||||
case GeoJSON:
|
case GeoJSON:
|
||||||
|
|
||||||
try {
|
try {
|
||||||
new ObjectMapper().readValue(fieldToValidate.getValue(), GeoJsonObject.class);
|
new com.fasterxml.jackson.databind.ObjectMapper().readValue(fieldToValidate.getValue(), GeoJsonObject.class);
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
throw new BadRequestException("GeoJSON field with key '" + key + "' seems not valid!");
|
throw new BadRequestException("GeoJSON field with key '" + key + "' seems not valid!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue