code: function (state, action) {
      return _.defaults({
        errors: action.errors,
        fieldErrors: action.fieldErrors,
        lastAction: VALIDATION_RESOLVED,
        validationResult: action.validationResult,
        fieldValidationResult: action.fieldValidationResult
      }, state)
    }
docs: /* eslint-enable complexity 
  Update validation results
  @param {State} state - state to update
  @param {Action} action - action
  @returns {State} - updated state