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

validate shouldn't mutate input #37

Open
jfirebaugh opened this issue Mar 19, 2013 · 1 comment
Open

validate shouldn't mutate input #37

jfirebaugh opened this issue Mar 19, 2013 · 1 comment

Comments

@jfirebaugh
Copy link

validate will mutate the input object by adding default values for missing defaults. This is unexpected and in the typical case undesired -- the name validate implies a function to check, not modify, the input.

@notslang
Copy link

notslang commented Apr 8, 2014

+1, that is an odd behavior. But, when this is fixed there should be a way to get the modified object with defaults inserted - just not by it mutating the input.

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

No branches or pull requests

2 participants