-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
bugSomething isn't workingSomething isn't working
Description
While going through the READM on ember-changeset we noticed following lines:
try {
await this.changeset.validate((changes) => FormSchema.validate(changes));
this.changeset.removeError(path); // << what is this method?
} catch (e) {
this.changeset.addError(e.path, { value: this.changeset.get(e.path), validation: e.message });
}We tried to look for said function in ember-changeset repo, but apart from README and test, there were no results. Then we found out that said method is actually defined on validated-changeset.
But even the README of validated-changeset does not mention this method. By looking at the other methods of the validated.ts file, it seems like validated-changeset README is missing the documentation on removeError and removeErrors?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working