We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be great to be able to specify validation for nested structures such as arrays or JSON.
See https://yiiframework.ru/forum/viewtopic.php?f=38&t=51463
The text was updated successfully, but these errors were encountered:
Could you post an example?
Sorry, something went wrong.
Input:
$_POST = [ 'id' => 42, 'name' => 'Nested structure validation', 'tags' => ['nested', 'validation'], ];
Need to validate that each item in tags is a string with at least 3 characters.
That is now possible with Each validator but I'm not sure it will work well for more complicated structures.
Each
i will test , and when needed implement it
@Insolita has created a amazing package (https://github.com/Insolita/yii2-array-structure-validator) for similar thing in Yii2. We can re-use it.
09008f1
No branches or pull requests
It would be great to be able to specify validation for nested structures such as arrays or JSON.
See https://yiiframework.ru/forum/viewtopic.php?f=38&t=51463
The text was updated successfully, but these errors were encountered: