Jira (PUP-5464) Parameter validation should allow multiple valid data types.
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-5464 Parameter validation should allow multiple valid data types. Change By: Henrik Lindberg Team: Puppet Developer Support Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5464) Parameter validation should allow multiple valid data types.
Title: Message Title Henrik Lindberg commented on PUP-5464 Re: Parameter validation should allow multiple valid data types. The long term direction is to use the type system to declare the data type of parameters. The type system includes a Variant type that allows a number of different types to be acceptable. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5464) Parameter validation should allow multiple valid data types.
Title: Message Title Trevor Vaughan created an issue Puppet / PUP-5464 Parameter validation should allow multiple valid data types. Issue Type: Improvement Affects Versions: PUP 4.2.3 Assignee: Unassigned Components: Language Created: 2015/11/02 7:39 AM Labels: validate parameter metadata Priority: Minor Reporter: Trevor Vaughan During parameter declaration, I would like the ability to state that a variable can be one of many types. This should allow validation under those types, but should not allow any type outside of the provided list. For example, there are many cases, particularly in native types, that allow input to be either a String or an Array. Additionally, the pattern of making a variable a Boolean or a String is fairly common. Finally, the alternative of using either an Array or a Hash is also reasonable (list vs additional detail). I'm aware that this can currently be worked around by not validating in the