0
Je validation voudrais éventuellement aux utilisateurs d'insérer un e-mail à l'aide ember-cp-validations:Valider email en option avec Ember-cp-
const Validations = buildValidations({
managerEmail: {
validators: [
validator('presence', null), // means it can be optional when used alone
validator('format', { type: 'email' })
]
}
});
Mais il faut encore un e-mail et n'acceptera pas un champ vide. Comment puis-je le rendre facultatif?