diff --git a/soitool/serialize_export_import_soi.py b/soitool/serialize_export_import_soi.py index 2c10055a33fabc6d2176af352502b8ea9a8cc710..294c713e54bd19dc956638f28c05cc103c6550ab 100644 --- a/soitool/serialize_export_import_soi.py +++ b/soitool/serialize_export_import_soi.py @@ -15,7 +15,17 @@ SERIALIZED_SOI_SCHEMA = Schema( "date": Or(str, None), "valid": {"from_date": Or(str, None), "to_date": Or(str, None)}, "icon": Or(str, None), - "classification": And(str, len), + "classification": And( + str, + len, + Or( + "UGRADERT", + "BEGRENSET", + "KONFIDENSIELT", + "HEMMELIG", + "STRENGT HEMMELIG", + ), + ), "orientation": And(str, len, Or("portrait", "landscape")), "placement_strategy": And(str, len, Or("manual", "auto")), "algorithm_bin": And(str, len, Or("BFF", "BBF")), diff --git a/test/test_serialize_export_import.py b/test/test_serialize_export_import.py index eec9f433bb50901672a06e93f5e93fa677e3742f..d615e6c491e10cf710d06260b16892dd06c16ec0 100644 --- a/test/test_serialize_export_import.py +++ b/test/test_serialize_export_import.py @@ -28,7 +28,7 @@ DATE = "01.01.2020" VALID_FROM = "01.01.2020" VALID_TO = "02.01.2020" ICON = "soitool/media/HVlogo.png" -CLASSIFICATION = "Ugradert" +CLASSIFICATION = "UGRADERT" ORIENTATION = "portrait" PLACEMENT_STRATEGY = "manual" ALGORITHM_BIN = "BFF"