validatorjs / validator.js

String validation
MIT License
23k stars 2.29k forks source link

Add support uuid v7 for `isUUID` #2344

Closed ruscon closed 4 months ago

ruscon commented 9 months ago

Describe the bug uuid v7 - is one of the most anticipated versions, I would like to use it already

Examples uuid v7 format: https://github.com/LiosK/uuidv7

Validate UUIDv7 and parse the timestamp example: https://gist.github.com/robinpokorny/3e1ef5eebce096824d3c2054202e4217

WikiRik commented 9 months ago

I don't think we'll support it soon. We do not have regular updates and the implementation is not set in stone so I think it's not in scope for this project right now. But I'll keep it open so we can add support for it once the implementation is definitive

ruscon commented 9 months ago

@WikiRik I don’t think that such changes are difficult to add and that they break something. The format of uuid v7 is the same as that of uuid v4

WikiRik commented 9 months ago

If the format remains the same, and I now see that it should, then it's not an issue with adding indeed. Thanks for opening a PR for it!