function getSuggestedValue (fakedValue, actualValue, ajvValidationErrorObj) {
  var suggestedValue,
    tempSuggestedValue,
    dataPath = formatDataPath(ajvValidationErrorObj.instancePath || ''),
    targetActualValue,
    targetFakedValue;

  // discard the leading '.' if it exists
  if (dataPath[0] === '.') {
    dataPath = dataPath.slice(1);
  }

  targetActualValue = getPathValue(actualValue, dataPath, {});
  targetFakedValue = getPathValue(fakedValue, dataPath, {});

  switch (ajvValidationErrorObj.keyword) {

    // to do: check for minItems, maxItems

    case 'minProperties':
      suggestedValue = _.assign({}, targetActualValue,
        _.pick(targetFakedValue, _.difference(_.keys(targetFakedValue), _.keys(targetActualValue))));
      break;

    case 'maxProperties':
      suggestedValue = _.pick(targetActualValue, _.intersection(_.keys(targetActualValue), _.keys(targetFakedValue)));
      break;

    case 'required':
      suggestedValue = _.assign({}, targetActualValue,
        _.pick(targetFakedValue, ajvValidationErrorObj.params.missingProperty));
      break;

    case 'minItems':
      suggestedValue = _.concat(targetActualValue, _.slice(targetFakedValue, targetActualValue.length));
      break;

    case 'maxItems':
      suggestedValue = _.slice(targetActualValue, 0, ajvValidationErrorObj.params.limit);
      break;

    case 'uniqueItems':
      tempSuggestedValue = _.cloneDeep(targetActualValue);
      tempSuggestedValue[ajvValidationErrorObj.params.j] = _.last(targetFakedValue);
      suggestedValue = tempSuggestedValue;
      break;

    // Keywords: minLength, maxLength, format, minimum, maximum, type, multipleOf, pattern
    default:
      suggestedValue = getPathValue(fakedValue, dataPath, null);
      break;
  }

  return suggestedValue;
}
This function extracts suggested value from faked value at Ajv mismatch path (dataPath)

@param {*} fakedValue Faked value by jsf
@param {*} actualValue Actual value in transaction
@param {*} ajvValidationErrorObj Ajv error for which fix is suggested
@returns {*} Suggested Value