Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

introduce validation for Value/*Collection #2

Open
shrink0r opened this issue Jun 19, 2014 · 0 comments
Open

introduce validation for Value/*Collection #2

shrink0r opened this issue Jun 19, 2014 · 0 comments

Comments

@shrink0r
Copy link
Contributor

At the moment the TextCollection and NumberCollection values don't use specific validation rules. They still implement the validation and sanitization within the IValue::set method. This way of handling values being set is deprecated and should be replaced by adequate IRule implementations.
We either need a TextCollectionRule and a NumberCollectionRule, or refactor the existing Text- and NumberRule to support validating arrays.

@see https://github.com/berlinonline/Dat0r/blob/field_path/src/Dat0r/Runtime/Attribute/Value/Type/TextCollectionValue.php#L55

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant