@Override
  public void validate(String value, @Nullable List<String> options) {
    try {
      Double.parseDouble(value);
    } catch (NumberFormatException e) {
      throw BadRequestException.create(format("Value '%s' must be an floating point number.", value));
    }
  }
@Test
  public void not_fail_on_valid_float() {
    validation.validate("10.2", null);
    validation.validate("10", null);
    validation.validate("-10.3", null);
  }