Skip to content
RUMLRUML

Open Format for Digital Law

2.5 Identifier System

UUID and LexID formats.

lexid-not-a-positive-integer

DescriptionA node is keyed `"0"`, which does not match the required `^[1-9][0-9]*$` LexID pattern.
Expectreject
Layerschema
RUML2-5-identifier-system.fixtures/reject-lexid-not-a-positive-integer.ruml
Spec§2.5
Expected rule violationsFMT-11
At/rulemap/nodes/0
2-5-identifier-system.fixtures/reject-lexid-not-a-positive-integer.ruml
{
"$format": "RUML",
"$specVersion": "1.0",
"metadata": {
"id": "ec36948d-fbb2-4815-985a-bd5e9375d934",
"version": "1.0.0",
"created": "2024-01-01T00:00:00Z",
"modified": "2024-01-01T00:00:00Z",
"status": "draft"
},
"rulemap": {
"nodes": {
"0": {
"id": "551ff73a-66ce-48ca-b889-84bc63ce864c",
"label": "zero"
},
"1": {
"id": "0eb360a6-626a-406d-89a1-9f434ced141b",
"operator": "AND",
"label": "root",
"children": ["2", "3"]
},
"2": {
"id": "6840b48d-117f-474e-ae4e-337b8e60537c",
"label": "One"
},
"3": {
"id": "95f566ad-b37c-4a18-b004-e83274d0fe83",
"label": "Two"
}
}
}
}

uppercase-uuid

Description`metadata.id` is upper-case, but the UUID v4 pattern requires lower-case.
Expectreject
Layerschema
RUML2-5-identifier-system.fixtures/reject-uppercase-uuid.ruml
Spec§2.5
Expected rule violationsFMT-10
At/metadata/id
2-5-identifier-system.fixtures/reject-uppercase-uuid.ruml
{
"$format": "RUML",
"$specVersion": "1.0",
"metadata": {
"id": "EC36948D-FBB2-4815-985A-BD5E9375D934",
"version": "1.0.0",
"created": "2024-01-01T00:00:00Z",
"modified": "2024-01-01T00:00:00Z",
"status": "draft"
},
"rulemap": {
"nodes": {
"1": {
"id": "0eb360a6-626a-406d-89a1-9f434ced141b",
"operator": "AND",
"label": "root",
"children": ["2", "3"]
},
"2": {
"id": "6840b48d-117f-474e-ae4e-337b8e60537c",
"label": "One"
},
"3": {
"id": "95f566ad-b37c-4a18-b004-e83274d0fe83",
"label": "Two"
}
}
}
}