Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for iterating document errors #19

Open
skylar-anderson opened this issue Nov 16, 2015 · 3 comments
Open

API for iterating document errors #19

skylar-anderson opened this issue Nov 16, 2015 · 3 comments
Labels

Comments

@skylar-anderson
Copy link
Contributor

No description provided.

@rwjblue
Copy link
Contributor

rwjblue commented Nov 19, 2015

Been thinking about this one. I'm not sure what the best API is, but I'm going to make a first pass that is something like this:

let errors = document.errors; // this will be an array that is updated for every set/add operation

// each entry would look like:
{
  attribute: 'path.to.field.in.document',
  message: 'error text'
}

What do you think?

@rwjblue
Copy link
Contributor

rwjblue commented Dec 4, 2015

Ping @sandersonet, you ok with ^^?

@skylar-anderson
Copy link
Contributor Author

That looks spot on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants