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
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
The text was updated successfully, but these errors were encountered:
You can use uuid.version(), which calls validate under the hood and returns the version as a number. It throws the same error as uuid.validate() an error when call with a malformed uuid.
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
The text was updated successfully, but these errors were encountered: