Closed maximilyin closed 7 years ago
Description the rule list_of:
Allows you to describe validation rules for a list. Validation rules will be applyed for each array element.
Error code: depends on nested validators
Example:
// new syntax (introduced in v0.4) { product_ids: { 'list_of': 'positive_integer' }} { product_ids: { 'list_of': ['required', 'positive_integer'] }} // new syntax
Please fix this functionality. Best regards!
Could you please show particular example from your application?
Sorry, I was inattentive. This rule works!
Description the rule list_of:
Allows you to describe validation rules for a list. Validation rules will be applyed for each array element.
Error code: depends on nested validators
Example:
// new syntax (introduced in v0.4) { product_ids: { 'list_of': 'positive_integer' }} { product_ids: { 'list_of': ['required', 'positive_integer'] }} // new syntax
Please fix this functionality. Best regards!