Fixing GeoJson validation

This commit is contained in:
Luca Frosini 2021-03-29 10:58:42 +02:00
parent 81218d3e5c
commit 98aec729cc
1 changed files with 1 additions and 1 deletions

View File

@ -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!");
} }