in src/main/java/com/epam/eco/commons/json/JsonDeserializerUtils.java [42:54]
public static void assertRequiredField(
Object value,
String fieldName,
Class<?> targetType,
DeserializationContext ctxt) throws JsonMappingException {
Validate.notBlank(fieldName, "Field name can't be blank");
Validate.notNull(targetType, "Target type can't be null");
Validate.notNull(ctxt, "Deserialization context can't be null");
if (value == null) {
ctxt.reportInputMismatch(targetType, "Field '%s' is required", fieldName);
}
}