Yii Validator 2.6.0
Yii Validator version 2.6.0 was released.
This release adds a new File validator, extends Image validator input support, and includes translation,
documentation, and internal code quality improvements.
Yii Validator version 2.6.0 was released.
This release adds a new File validator, extends Image validator input support, and includes translation,
documentation, and internal code quality improvements.
Yii Validator version 2.5 was released.
In this version added Result::getPropertyErrorMessagesByPath() method.
Yii Validator version 2.4.0 was released. In this version:
NestedWhenMissing not working in nested rulesNested rule processing within EachVersion 2.3 of Yii Validator package has been released.
The Uuid validation rule was added in this version.
Version 2.2 of Yii Validator package has been released. Here is the list of changes included in the new version:
stopOnError parameter to Each rulecomposer.json to ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0yiisoft/strings version to ^2.6Version 2.1 of Yii Validator package has been released. Here is the list of changes included in the new version:
getRules() method;Yiisoft\NetworkUtilities\IpRanges in Ip rule: add getIpRanges() method and deprecate getRanges(), getNetworks(), isAllowed() methods;NEGATION_CHARACTER constant from network-utilities package in IpHandler instead of declaring its own constant.Major version of Yii Validator were tagged.
Each::PARAMETER_EACH_KEY validation context parameter that available during Each rule handling and containing the current keyInEnum ruleYii Validator package was updated with the following enhancements and new features:
getFirstErrorMessagesIndexedByPath() and getFirstErrorMessagesIndexedByAttribute() methods to
Result;boolean, float, integer, string;Result::add() method for merging other results to the base one;UniqueIterable rule;Yii Validator package was updated with the following enhancements and new features:
addErrorWithFormatOnly() and addErrorWithoutPostProcessing() to Result object;Image validation rule;Date, DateTime and Time validation rules;Result.Major release of yiisoft/hydrator-validator was tagged.
LogicException on call ValidatedInputInterface::getValidatedInput() method when object is not validated.Yii Validator package was updated with the following enhancements and fixes:
yiisoft/yii-debug;$escape parameter to methods Result::getAttributeErrorMessagesIndexedByPath() and Result::getErrorMessagesIndexedByPath() that allow change or disable symbol which will be escaped in value path elements;OneOf rule;EmailHandler::validate() method;First stable release of yiisoft/hydrator-validator was tagged.
The package provides a hydrator that also does validation, including raw data. It's useful when input data comes from a user, and you need to validate it and then put it into DTOs.
To use it, the object being validated must implement ValidatedInputInterface. You can use ValidatedInputTrait to
easily create such object. The validation rules for raw values of the object are defined with Validate PHP attribute.
Minor version (1.1.0) of Validator package has been released.
See CHANGELOG.md for the list of changes.
The first stable version of yiisoft/validator was released.
This package allows to check data in any format - arrays, objects, scalar values, etc. An example for the case when data is an object:
use Yiisoft\Validator\Rule\AtLeast;
use Yiisoft\Validator\Rule\Email;
use Yiisoft\Validator\Rule\Length;
use Yiisoft\Validator\Rule\Number;
use Yiisoft\Validator\Rule\Required;
use Yiisoft\Validator\Validator;