Skip to content

allow to specify a uuid version to validate method #526

@ben8p

Description

@ben8p

Is your feature request related to a problem? Please describe.

Cross referencing https://github.com/thenativeweb/uuidv4/issues/221

There is currently no way to know if a given string is a valid uuid of a specific version. We can only know if it is a valid uuid (regardless of the version)

Describe the solution you'd like

add a 2nd argument to validate where we can specify the version of the uuid to check against.

Describe alternatives you've considered

add methods such as validateV4, validateV5, ....

Additional context

See the uuidv4 issue linked on top of the feature request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions