# @param arg1 [String] String A message parameter.
# @param arg2 An Optional Numeric parameter.
Puppet::DataTypes.create_type('ValidModuleDataType') do
interface <<-PUPPET
attributes => {
arg1 => { type => String, value => "defaultvalue" }
arg2 => { type => Optional[Numeric], value => -1 }
}
PUPPET
end
The arg2 type should be automatically inferred as Optional[Numeric] however currently Puppet-Strings (2.3.0) thinks there is no type information for arg2.