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

Default value validation #10

Closed
wants to merge 1 commit into from
Closed

Conversation

alex-seville
Copy link
Contributor

I've added a line to validate that default values are either string or numeric.
Passing in an Object or Array works, but it's not logical.

I'm not sure what the philosophy of the project is regarding input validation, but I thought I'd submit the change as a suggestion.

Check the default value, and if it exists, and it's not a string, throw an error indicating that non-string default values are no longer allowed. 

Added numeric default values
@isaacs
Copy link
Contributor

isaacs commented Aug 12, 2012

Landed with wrapped lines, and a slightly changed message on f9df3d6.

Thanks!

@isaacs isaacs closed this Aug 12, 2012
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.

None yet

2 participants