Skip to content

Commit 0787384

Browse files
committed
[#3688] Add dataClassification field
1 parent 2612f1e commit 0787384

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/openforms/registrations/contrib/objects_api/api/serializers.py

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ class ObjecttypeSerializer(serializers.Serializer):
1313
uuid = serializers.UUIDField(label=_("Unique identifier (UUID4)."))
1414
name = serializers.CharField(label=_("Name of the object type."))
1515
namePlural = serializers.CharField(label=_("Plural name of the object type."))
16+
dataClassification = serializers.CharField(
17+
label=_("Confidential level of the object type.")
18+
)
1619

1720

1821
class ObjecttypeVersionSerializer(serializers.Serializer):

src/openforms/registrations/contrib/objects_api/tests/test_api_endpoints.py

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def test_list_objecttypes(self, m: requests_mock.Mocker):
7070
"uuid": "2c77babf-a967-4057-9969-0200320d23f1",
7171
"name": "Tree",
7272
"namePlural": "Trees",
73+
"dataClassification": "open",
7374
}
7475
],
7576
},
@@ -89,6 +90,7 @@ def test_list_objecttypes(self, m: requests_mock.Mocker):
8990
"uuid": "2c77babf-a967-4057-9969-0200320d23f1",
9091
"name": "Tree",
9192
"namePlural": "Trees",
93+
"dataClassification": "open",
9294
}
9395
],
9496
)

0 commit comments

Comments
 (0)