@@ -94,6 +94,7 @@ def __init__(
9494
9595 @property
9696 @serializable .xml_sequence (1 )
97+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
9798 def uid (self ) -> Optional [str ]:
9899 """
99100 A unique identifier of the commit. This may be version control specific. For example, Subversion uses revision
@@ -155,6 +156,7 @@ def committer(self, committer: Optional[IdentifiableAction]) -> None:
155156
156157 @property
157158 @serializable .xml_sequence (5 )
159+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
158160 def message (self ) -> Optional [str ]:
159161 """
160162 The text description of the contents of the commit.
@@ -1151,6 +1153,7 @@ def type(self, type: ComponentType) -> None:
11511153 self ._type = type
11521154
11531155 @property
1156+ @serializable .xml_string (serializable .XmlStringSerializationType .TOKEN )
11541157 def mime_type (self ) -> Optional [str ]:
11551158 """
11561159 Get any declared mime-type for this Component.
@@ -1256,6 +1259,7 @@ def authors(self, authors: Iterable[OrganizationalContact]) -> None:
12561259 @serializable .view (SchemaVersion1Dot5 )
12571260 @serializable .view (SchemaVersion1Dot6 ) # todo: this is deprecated in v1.6?
12581261 @serializable .xml_sequence (4 )
1262+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
12591263 def author (self ) -> Optional [str ]:
12601264 """
12611265 The person(s) or organization(s) that authored the component.
@@ -1271,6 +1275,7 @@ def author(self, author: Optional[str]) -> None:
12711275
12721276 @property
12731277 @serializable .xml_sequence (5 )
1278+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
12741279 def publisher (self ) -> Optional [str ]:
12751280 """
12761281 The person(s) or organization(s) that published the component
@@ -1286,6 +1291,7 @@ def publisher(self, publisher: Optional[str]) -> None:
12861291
12871292 @property
12881293 @serializable .xml_sequence (6 )
1294+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
12891295 def group (self ) -> Optional [str ]:
12901296 """
12911297 The grouping name or identifier. This will often be a shortened, single name of the company or project that
@@ -1305,6 +1311,7 @@ def group(self, group: Optional[str]) -> None:
13051311
13061312 @property
13071313 @serializable .xml_sequence (7 )
1314+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
13081315 def name (self ) -> str :
13091316 """
13101317 The name of the component.
@@ -1328,6 +1335,7 @@ def name(self, name: str) -> None:
13281335 @serializable .include_none (SchemaVersion1Dot2 , '' )
13291336 @serializable .include_none (SchemaVersion1Dot3 , '' )
13301337 @serializable .xml_sequence (8 )
1338+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
13311339 def version (self ) -> Optional [str ]:
13321340 """
13331341 The component version. The version should ideally comply with semantic versioning but is not enforced.
@@ -1348,6 +1356,7 @@ def version(self, version: Optional[str]) -> None:
13481356
13491357 @property
13501358 @serializable .xml_sequence (9 )
1359+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
13511360 def description (self ) -> Optional [str ]:
13521361 """
13531362 Get the description of this Component.
@@ -1419,6 +1428,7 @@ def licenses(self, licenses: Iterable[License]) -> None:
14191428
14201429 @property
14211430 @serializable .xml_sequence (13 )
1431+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
14221432 def copyright (self ) -> Optional [str ]:
14231433 """
14241434 An optional copyright notice informing users of the underlying claims to copyright ownership in a published
0 commit comments