adopted-ember-addons / adopted-ember-addons/ember-changeset-validations

regex not working as expected with boolean fields in ValidateFormat

Ouverte
#146 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
215
Forks
98
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hello,

I know you won't answer questions, but I tought it would be good to share this. I stumbled upon an issue with validateFormat using regex when trying to check a boolean field. I suspect this simply cannot be used for boolean fields.

More info here:

https://stackoverflow.com/questions/44246791/ember-changeset-validations-not-working-as-expected-with-a-boolean

Maybe this should be stated more clearly in the docs?

Thanks and keep up the good work!

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.