ember-changeset-validations
ember-changeset-validations copied to clipboard
Validations for ember-changeset
Feature request - add a tracked isValidating flag for properties with async validations This will allow controls to show a spinner before showing a tick or cross icon for example.
Start with an empty text input Type `a` Async validator is called twice with `a` and a third time with `a` on `blur` Type a second character `b` Async validator...
## Code Snippet ``` @tracked model = { newPassword: '', confirmPassword: '' }; @tracked validatorsAreLoaded = false; constructor() { super(...arguments); this.createFormValidations(); } async createFormValidations() { await this.passwordStrength.load(); this.setPasswordValidation = {...
Given the following Ember.Object: ```js Ember.Object.create({ title: 'Hello', contactNumber: { type: '07594378348', number: '' } }) ``` How do I define validations to validate the contactNumber.number field? ```js { title:...
`validatePresence({ presence: true, on: 'email' })` ## Version 2.1.0 This is probably me misunderstanding the behavior of the validator. ## Steps to reproduce ``` export default { email: [ validatePresence(true),...
Given a changeset reacts to changes, the default state is always valid until a change is made on each property. Is there a way to force a validation to run...
The documentation currently shows that you can create a custom validator and which arguments are provided into the function, however, nowhere is it explained what each of these arguments actually...
This is more like a 🤔 , since I solved how to get around it. I tried very hard to tweak the demo twiddle to reproduce this, but it just...
This might be more of a feature request than a bug (at least with the provided validators). I have implemented a validator which checks for presence OR for the presence...
Hi!, i can't make a customValidator that check two fields in the changeset. The current changeset is hidden from validator for any reason, or simply i don't find a way...