Closed arogachev closed 10 months ago
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ❌ |
Breaks BC? | ❌ |
Updates to CHANGELOG.md
OneOf
rule, and updates were made to another OneOf
rule description to reflect changes in error messages for translated attributes.Modification of Error Messages in 'yii-validator.php' files (in 'pl', 'ru', 'uz' languages)
The updates enable the error message for a specific validation rule known as AtLeast
to detail how many attributes need to be filled in a list, and takes into account plural forms.
Enhancements to AtLeast and OneOf Rules
Modifications were made in certain files related to the AtLeast
and OneOf
rules. These changes ensure that the minimum number of attributes to be filled isn't greater than the total number of attributes available, and certain attributes can be translated for better localization.
Addition of TranslatedAttributesHandlerTrait.php A new file was added which might include special traits/methods to handle translated attributes.
Updates to Test Files
Test cases were updated for AtLeast
and OneOf
rules to reflect the changes in error messages and test the updated functionalities.
Updates to Data Files
Changes were made to AtLeastDto.php
and OneOfDto.php
files that involve implementing a new interface and a method to return labels for attributes which might support better data translation or localization.
Patch coverage: 100.00%
and no project coverage change.
Comparison is base (
4e79a26
) 94.40% compared to head (05f6247
) 94.40%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
👍