fix(api): reject invalid UUID variants

This commit is contained in:
2026-07-21 14:02:31 +08:00
parent 7803b2faf0
commit 4bfeec8d2b
2 changed files with 2 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ func TestIdentityParamRejectsNonUUIDV7(t *testing.T) {
}{
{name: "internal numeric ID", value: "42"},
{name: "UUID v4", value: "550e8400-e29b-41d4-a716-446655440000"},
{name: "UUID v7 with invalid variant", value: "018f0c9a-7b3c-7cc1-78c8-0242ac120002"},
}
for _, tt := range tests {