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

Allowing default values for required parameters #53

Merged
merged 2 commits into from
Jul 22, 2016

Conversation

netmilk
Copy link
Contributor

@netmilk netmilk commented Jul 21, 2016

No description provided.

@netmilk netmilk force-pushed the netmilk/default-example-error branch from 87b5f53 to 5df3db0 Compare July 21, 2016 21:29
result.errors.push(text)
if param.required is true and
(param.example is '' or param.example is undefined or param.example is null) and
(param.default is '' or param.default is undefined or param.default is null)
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just if param.required and not param.example and not param.default? are there any corner cases?

screen shot 2016-07-22 at 09 00 20

@honzajavorek honzajavorek force-pushed the netmilk/default-example-error branch from d2b372c to f4d1671 Compare July 22, 2016 07:05
@honzajavorek honzajavorek merged commit 1fc16d5 into master Jul 22, 2016
@honzajavorek honzajavorek deleted the netmilk/default-example-error branch July 22, 2016 07:11
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