question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add strict min/max Range validator

See original GitHub issue

Range only offers “greater than or equal” (min) and “lower than or equal” (max).

We could add “greater than” and “lower than”.

How should we call the new parameters?

  • min_strict and max_strict?
  • strict_min and strict_max?
  • …?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sloriacommented, May 17, 2019

Sure, min_inclusive and max_exclusive seem fine to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Min / Max Validator in Angular 2 Final - Stack Overflow
min()/max() is a static function that accepts a number parameter and returns A validator function that returns an error map with the min/max...
Read more >
Validators - Angular
ValidatorFn : A validator function that returns an error map with the minlength property if the validation check fails, otherwise null . Usage...
Read more >
in_range: Check variable range in validate - Rdrr.io
Test wether a variable falls within a range. Usage. in_range(x, min, max, ...) ## Default S3 method: in_range(x, min, max, strict = FALSE,...
Read more >
The best way to implement custom validators - Angular inDepth
First, we will have a look at some built-in operators and then learn how to implement a custom validator on our own (this...
Read more >
Validation - Laravel - The PHP Framework For Web Artisans
Validating Files; Validating Passwords; Custom Validation Rules ... To use strict comparisons, you may add the strict parameter to your validation rule ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found