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

[DOC] Mark errorsHashToArray and errorsArrayToHash public #4612

Merged
merged 1 commit into from
Oct 27, 2016
Merged

[DOC] Mark errorsHashToArray and errorsArrayToHash public #4612

merged 1 commit into from
Oct 27, 2016

Conversation

pangratz
Copy link
Member

This methods are already present on the DS namespace, so this change
marks the officially as public and adds documentation how they can be
used.

// source: { pointer: "/data/attributes/age" }
// }
// ]
let errorsArray = errorsHashToArray(errors);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put this line above the commented object that shows the value of errorsArray.

// "name": ["Must be present"],
// "age": ["Must be present", "must be a number"]
// }
let errors = errorsArrayToHash(errorsArray);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@bmac
Copy link
Member

bmac commented Oct 21, 2016

Overall I'm 👍 on this change.

This methods are already present on the `DS` namespace, so this change
marks the officially as public and adds documentation how they can be
used.
@pangratz
Copy link
Member Author

@bmac thanks. Done.

@pangratz pangratz merged commit 3513c49 into emberjs:master Oct 27, 2016
@pangratz pangratz deleted the doc-error-utils branch October 27, 2016 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants