validator icon indicating copy to clipboard operation
validator copied to clipboard

Yii validator library

Results 48 validator issues
Sort by recently updated
recently updated
newest added

For example: ```php new Date( format: 'php:d.m.Y', min: '19.11.2013', max: '31.12.2099', skipOnEmpty: true, ), ``` In this case I expect that in error message date will be formatted as `php:d.m.Y`.

type:enhancement
status:ready for adoption

Need to think of real use cases and rules of comparison.

type:enhancement
status:under discussion

Return error code for property validate rules on API application.

type:enhancement
status:ready for adoption

My suggestion: 1) Remove method `RuleInterface::getName()`. 2) Remove interface `RuleWithOptionsInterface`. 3) Remove `RulesDumper`. 4) Create new `RulesConvertor` that would can be configured for usage with custom rules also. Benefits: -...

status:under discussion

### What steps will reproduce the problem? ### What is the expected result? ### What do you get instead? ### Additional info | Q | A | ---------------- | ---...

type:enhancement

In rule handlers `Result::addError()` is added error message to current key and value path define path into key. Need ability to add error with globally path. Example: ```php $result =...

type:enhancement
status:ready for adoption

```php final class Body { private ?Shipping $shipping = null; } final class Shipping { private string $phone = ''; } 'body' => new Nested(['shipping.phone' => new Regex('/^\+\d{11}$/')]); ``` So...