-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
This is not a current capability of alpaca, but since we are making validators reusable with ember-cli-dynamic-forms, we want to support it.
With this feature, the validator field has the option to be specified as an array, for example:
{
"schema": {
...
"beverage": {
"type": "string",
"enum": ["water", "soda", "beer", "wine"]
}
}
},
"options": {
...
"beverage": {
"label": "Choice of Beverage",
"slider": true,
"validator": ["drinking-age", "non-negative"]
}
}
}
}
Both validations should be executed, one or both messages if any validations are not met