Skip to content

Commit 7708f47

Browse files
committed
revert warning on models.service.Service.data
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 223ebf7 commit 7708f47

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cyclonedx/model/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class DataClassification:
7373
"""
7474
This is our internal representation of the `dataClassificationType` complex type within the CycloneDX standard.
7575
76+
DataClassification might be deprecated since CycloneDX 1.5, but it is not deprecated in this library.
77+
In fact, this library will try to provide a compatibility layer if needed.
78+
7679
.. note::
7780
See the CycloneDX Schema for dataClassificationType:
7881
https://cyclonedx.org/docs/1.6/xml/#type_dataClassificationType

cyclonedx/model/service.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,6 @@ def data(self) -> 'SortedSet[DataClassification]':
261261

262262
@data.setter
263263
def data(self, data: Iterable[DataClassification]) -> None:
264-
if data:
265-
warn('`@.data` is deprecated from CycloneDX v1.5 onwards. '
266-
'Alternative implementation is planned for future versions.',
267-
DeprecationWarning)
268264
self._data = SortedSet(data)
269265

270266
@property

0 commit comments

Comments
 (0)