You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: optional parameter listed before required parameter on line 3
I'd argue that a namevar for defined types are still required parameters, since the title of a resource is required, hence the parameter is still required, even though it has a default, which is in turn a required parameter.
The text was updated successfully, but these errors were encountered:
The unanimous decision of the discussion in puppetlabs/puppet-docs#725 was that although you're defaulting your parameter to a required value, the parameter itself is still optional as it's not necessary for someone to specify a value for it.
Given that, the check output is correct in this case and I'm going to close this issue.
Example:
command:
Expected output: none
Actual output:
I'd argue that a namevar for defined types are still required parameters, since the title of a resource is required, hence the parameter is still required, even though it has a default, which is in turn a required parameter.
The text was updated successfully, but these errors were encountered: