Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Jun 15, 2023
1 parent 4daad47 commit 4cd9b5f
Show file tree
Hide file tree
Showing 92 changed files with 247 additions and 349 deletions.
2 changes: 1 addition & 1 deletion cyclonedx/model/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ def hashes(self, hashes: Iterable[HashType]) -> None:
@serializable.view(SchemaVersion1Dot2)
@serializable.view(SchemaVersion1Dot3)
@serializable.view(SchemaVersion1Dot4)
@serializable.xml_array(serializable.XmlArraySerializationType.FLAT, 'licenses')
# @serializable.xml_array(serializable.XmlArraySerializationType.NESTED, '')
@serializable.xml_sequence(10)
def licenses(self) -> "SortedSet[LicenseChoice]":
"""
Expand Down
1 change: 1 addition & 0 deletions cyclonedx/serialization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,4 @@ def serialize(cls, o: object) -> List[LicenseChoice]:
@classmethod
def deserialize(cls, o: object) -> List[LicenseChoice]:
raise NotImplementedError
return [LicenseChoice.from_json(data) for data in o]
49 changes: 5 additions & 44 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ keywords = [
python = "^3.7"
importlib-metadata = { version = "^3.4.0", python = "<3.8" }
packageurl-python = ">= 0.11"
py-serializable = "^0.11.1"
py-serializable = "^0.12"
sortedcontainers = "^2.4.0"

[tool.poetry.dev-dependencies]
Expand Down
Loading

0 comments on commit 4cd9b5f

Please sign in to comment.