Prots / olifer

LIVR implementation for Erlang
13 stars 1 forks source link

The rule list_of doesn't work #6

Closed maximilyin closed 7 years ago

maximilyin commented 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!

Prots commented 7 years ago

Could you please show particular example from your application?

maximilyin commented 7 years ago

Sorry, I was inattentive. This rule works!