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 for optional params #276

Closed
nickbalestra opened this issue Jul 22, 2016 · 0 comments · Fixed by #309
Closed

Default value for optional params #276

nickbalestra opened this issue Jul 22, 2016 · 0 comments · Fixed by #309
Assignees

Comments

@nickbalestra
Copy link
Contributor

nickbalestra commented Jul 22, 2016

I found my self doing this quite often for non mandatory params:

var something = context.params.something || "defaultValue";

I think it would be valuable being able to specify (in the case of !mandatory parameters) a default value in the package.json under oc.parameters.

@matteofigus matteofigus changed the title Default value for !mandatory params Default value for optional params Sep 11, 2016
@jankowiakmaria jankowiakmaria self-assigned this Oct 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants