model/src/main/java/eu/internetofus/common/model/ValidateContext.java
/**
   * Verify that a field model is valid.
   *
   * @param fieldName name of the field to validate.
   * @param value     to verify.
   *
   * @param <T>       type of value to verify.
   *
   * @return the validation result of the field.
   */
Verify that a field model is valid.
@param fieldName name of the field to validate.
@param value     to verify.

@param        type of value to verify.

@return the validation result of the field.
Verify that a field model is valid . @param fieldName name of the field to validate . @param value to verify . @param type of value to verify . @return the validation result of the field .
default <T extends Validable<SELF>> Function<Void, Future<Void>> validateField(final String fieldName,
      final T value) {
    return empty -> {
      if (value == null) {
        return this.failField(fieldName, "The '" + fieldName + "' can not be 'null'.");
      } else {
        return value.validate(this.createFieldContext(fieldName));
      }
    };
  }
default < T extends Validable < SELF > > Function < Void , Future < Void > > validateField ( final String fieldName , final T value ) { return empty -> { if ( value == null ) { return this . failField ( fieldName , "The '" + fieldName + "' can not be 'null'." ) ; } else { return value . validate ( this . createFieldContext ( fieldName ) ) ; } } ; }
Verify that a field model is valid.
Verify that a field model is valid .