Skip to content

Missing documentation on removeError and removeErrors #170

@MichalBryxi

Description

@MichalBryxi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions