@@ -94,6 +94,7 @@ def __init__(
94
94
95
95
@property
96
96
@serializable .xml_sequence (1 )
97
+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
97
98
def uid (self ) -> Optional [str ]:
98
99
"""
99
100
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:
155
156
156
157
@property
157
158
@serializable .xml_sequence (5 )
159
+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
158
160
def message (self ) -> Optional [str ]:
159
161
"""
160
162
The text description of the contents of the commit.
@@ -1151,6 +1153,7 @@ def type(self, type: ComponentType) -> None:
1151
1153
self ._type = type
1152
1154
1153
1155
@property
1156
+ @serializable .xml_string (serializable .XmlStringSerializationType .TOKEN )
1154
1157
def mime_type (self ) -> Optional [str ]:
1155
1158
"""
1156
1159
Get any declared mime-type for this Component.
@@ -1256,6 +1259,7 @@ def authors(self, authors: Iterable[OrganizationalContact]) -> None:
1256
1259
@serializable .view (SchemaVersion1Dot5 )
1257
1260
@serializable .view (SchemaVersion1Dot6 ) # todo: this is deprecated in v1.6?
1258
1261
@serializable .xml_sequence (4 )
1262
+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
1259
1263
def author (self ) -> Optional [str ]:
1260
1264
"""
1261
1265
The person(s) or organization(s) that authored the component.
@@ -1271,6 +1275,7 @@ def author(self, author: Optional[str]) -> None:
1271
1275
1272
1276
@property
1273
1277
@serializable .xml_sequence (5 )
1278
+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
1274
1279
def publisher (self ) -> Optional [str ]:
1275
1280
"""
1276
1281
The person(s) or organization(s) that published the component
@@ -1286,6 +1291,7 @@ def publisher(self, publisher: Optional[str]) -> None:
1286
1291
1287
1292
@property
1288
1293
@serializable .xml_sequence (6 )
1294
+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
1289
1295
def group (self ) -> Optional [str ]:
1290
1296
"""
1291
1297
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:
1305
1311
1306
1312
@property
1307
1313
@serializable .xml_sequence (7 )
1314
+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
1308
1315
def name (self ) -> str :
1309
1316
"""
1310
1317
The name of the component.
@@ -1328,6 +1335,7 @@ def name(self, name: str) -> None:
1328
1335
@serializable .include_none (SchemaVersion1Dot2 , '' )
1329
1336
@serializable .include_none (SchemaVersion1Dot3 , '' )
1330
1337
@serializable .xml_sequence (8 )
1338
+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
1331
1339
def version (self ) -> Optional [str ]:
1332
1340
"""
1333
1341
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:
1348
1356
1349
1357
@property
1350
1358
@serializable .xml_sequence (9 )
1359
+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
1351
1360
def description (self ) -> Optional [str ]:
1352
1361
"""
1353
1362
Get the description of this Component.
@@ -1419,6 +1428,7 @@ def licenses(self, licenses: Iterable[License]) -> None:
1419
1428
1420
1429
@property
1421
1430
@serializable .xml_sequence (13 )
1431
+ @serializable .xml_string (serializable .XmlStringSerializationType .NORMALIZED_STRING )
1422
1432
def copyright (self ) -> Optional [str ]:
1423
1433
"""
1424
1434
An optional copyright notice informing users of the underlying claims to copyright ownership in a published
0 commit comments