Skip to content
RUMLRUML

Open Format for Digital Law

2.1 General Properties

Encoding and well-formedness of the file as a whole.

not-utf8-encoded

DescriptionAn ISO-8859-1 encoded file (a label containing the byte 0xFC for `ü`) is not UTF-8 and must be rejected.
Expectreject
Layersemantic
RUML2-1-general-properties.fixtures/reject-iso-8859-1-encoded.ruml
Spec§2.1
Expected rule violationsFMT-01
2-1-general-properties.fixtures/reject-iso-8859-1-encoded.ruml
{
"$format": "RUML",
"$specVersion": "0.1",
"metadata": {
"id": "7f0c8f7e-4a5b-4c1d-9e2f-3a4b5c6d7e8f",
"version": "1.0.0",
"created": "2024-01-01T00:00:00Z",
"modified": "2024-01-01T00:00:00Z",
"status": "draft"
},
"rulemap": {
"nodes": {
"1": {
"id": "b2a1d3c4-5e6f-47a8-9b0c-1d2e3f4a5b6c",
"label": "Pr�fung der Anspruchsvoraussetzungen"
}
}
}
}

not-valid-json

DescriptionA file that is not JSON at all must be reported, not crash the validator.
Expectreject
Layersemantic
RUML2-1-general-properties.fixtures/reject-not-valid-json.ruml
Spec§2.1§2.2
Expected rule violationsFMT-02
2-1-general-properties.fixtures/reject-not-valid-json.ruml
{"$format": "RUML", "$specVersion": "0.1",