Skip to content

feat: check for specific UUID version#1551

Open
hazrid93 wants to merge 1 commit into
open-circle:mainfrom
hazrid93:hazrid93/24_1299
Open

feat: check for specific UUID version#1551
hazrid93 wants to merge 1 commit into
open-circle:mainfrom
hazrid93:hazrid93/24_1299

Conversation

@hazrid93

@hazrid93 hazrid93 commented Jul 20, 2026

Copy link
Copy Markdown

Closes #1299.

Add a uuidVersion(version, message?) action that takes a version (1 8) and validates the string is a UUID of that version by checking the version digit (the first character of the third group). It returns a standard validation action with a version specific regex. The existing uuid action is unchanged.

Summary by CodeRabbit

  • New Features
    • Added UUID version validation for versions 1–8.
    • Invalid UUID versions now produce validation issues with optional custom messages.
    • Added public exports for the new validation functionality.

Closes open-circle#1299.

Add a `uuidVersion(version, message?)` action that takes a version (1 8) and validates the string is a UUID of that version by checking the version digit (the first character of the third group). It returns a standard validation action with a version specific regex. The existing `uuid` action is unchanged.
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jul 20, 2026
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0172414b-c884-4de9-8e62-f809664e530c

📥 Commits

Reviewing files that changed from the base of the PR and between 90bc2c7 and 8117744.

📒 Files selected for processing (3)
  • library/src/actions/index.ts
  • library/src/actions/uuidVersion/index.ts
  • library/src/actions/uuidVersion/uuidVersion.ts

Walkthrough

Adds a uuidVersion action that validates typed dataset values against version-specific UUID regular expressions and records validation issues for mismatches. Defines its public types, issue shape, action shape, and overloaded factory signatures. Re-exports the action from its module entry point and the aggregated actions index.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding validation for specific UUID versions.
Linked Issues check ✅ Passed The PR adds version-specific UUID validation and checks the version digit in the third segment as requested by issue #1299.
Out of Scope Changes check ✅ Passed The changes stay within the requested UUID version validation feature and its exports, with no clear unrelated additions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Check for specific UUID version

1 participant