範例
Recover creation time and node metadata from a UUIDv1
Show that identifier formats expose different metadata; these are public vectors, not identifiers collected from a person.
輸入
C232AB00-9414-11EC-B3C8-9F6BDECED846Expected checks
Case-insensitiveContains "Version:\n1"
Contains "2022-02-22T19:22:22.000Z"
Contains "1645557742000"
Contains "258133314363070689776975542038781941830"
Contains "9F:6B:DE:CE:D8:46"- 包含中繼資料
On
Read the millisecond timestamp hidden in a UUIDv7
Show that identifier formats expose different metadata; these are public vectors, not identifiers collected from a person.
輸入
017F22E2-79B0-7CC3-98C4-DC0C0C07398FExpected checks
Case-insensitiveContains "Version:\n7"
Contains "2022-02-22T19:22:22.000Z"
Contains "1645557742000"
Contains "1989357241971137676463954034883508623"- 包含中繼資料
On
if the 'Include Metadata' option is false it should return not metadata
輸入
cefa1760-28ee-11f1-9f95-1fb76af3e239Expected answer
Version:
1
UUID Integer:
275119515460318071558429785403790975545- 包含中繼資料
Off
invalid UUID should return error message
輸入
not-a-uuidExpected rejection
Message containsInvalid UUID- 包含中繼資料
On
v1 UUID extracts timestamp, clock, and node
輸入
cefa1760-28ee-11f1-9f95-1fb76af3e239Expected answer
Version:
1
Timestamp:
1774514156502
Timestamp (ISO):
2026-03-26T08:35:56.502Z
Node:
1F:B7:6A:F3:E2:39
Clock:
8085
UUID Integer:
275119515460318071558429785403790975545- 包含中繼資料
On
v4 UUID should show no metadata - not possible
輸入
f47ac10b-58cc-4372-a567-0e02b2c3d479Expected answer
Version:
4
No metadata available. Only versions 1, 6, 7 are supported.
UUID Integer:
324969006592305634633390616021200786553- 包含中繼資料
On
v7 UUID extracts timestamp, randA, and randB
輸入
019d294a-af64-7728-9524-26da08f50708Expected answer
Version:
7
Timestamp:
1774514253668
Timestamp (ISO):
2026-03-26T08:37:33.668Z
Rand A:
1832
Rand B:
952426DA08F50708
UUID Integer:
2145256098533991595556290452700595976- 包含中繼資料
On
参數
| 参數 | 默認值 | 輸入與選項 |
|---|---|---|
| 包含中繼資料 | true | 開啟或关閉 |