add support UUID v6 v7 v8 #124
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π Linked issue
Update related documentation
β Type of change
π Description
Since PostgreSQL v18 adds native support to work with UUID v7 and considering that
Validator
already supports RFC9562 UUIDs, this pull request expands theversions
type including the 6, 7, and 8 in theuuidRule
. Also adds corresponding unit tests to ensure proper validation of these new UUID versions.Validation rule updates:
uuidRule
insrc/schema/string/rules.ts
to accept UUID versions 6, 7, and 8, in addition to the previously supported versions.Testing improvements:
tests/unit/rules/string.spec.ts
to verify validation for UUID versions 6, 7, and 8, as well as combinations of supported versions.π Checklist