Skip to content

Check if datatypes are reasonable #1467

Open
@SimonHoenscheid

Description

@SimonHoenscheid

Use Case

It seems like some datatypes could be more accurate

Describe the Solution You Would Like

correct datatypes if reasonable

Additional Context

example:

Variant[String[1], Stdlib::Port, Integer] $port = $postgresql::server::port,

Since Integer accepts all integers and String[1] all non empty strings the specialized Stdlib:Port will be without effect if it is a Pattern.
It does not make sense to have both Integer and Stdlib::Port since it is defined as Integer[0,65535] - should probably remove Integer from the variant unless it is possible to have a port that is > 65535.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions