Skip to content

Commit 3a623a2

Browse files
committed
1 parent e4e5bfc commit 3a623a2

File tree

3 files changed

+72
-67
lines changed

3 files changed

+72
-67
lines changed

npo/models/vpro_media_2009.py

+19-18
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from dataclasses import dataclass, field
22
from enum import Enum
3-
from typing import List, Optional
3+
from typing import List, Optional, Union
44
from xsdata.models.datatype import XmlDate, XmlDateTime, XmlDuration
55
from npo.models.vpro_shared_2009 import (
66
Image,
77
OwnerTypeEnum,
88
WorkflowEnumType,
99
)
10+
from npo.models.w3_org_xml_1998_namespace import LangValue
1011

1112
__NAMESPACE__ = "urn:vpro:media:2009"
1213

@@ -1088,23 +1089,6 @@ class StreamingStatusValue(Enum):
10881089
UNSET = "UNSET"
10891090

10901091

1091-
@dataclass
1092-
class TagType:
1093-
class Meta:
1094-
name = "tagType"
1095-
1096-
value: Optional[str] = field(
1097-
default=None,
1098-
)
1099-
lang: Optional[str] = field(
1100-
default=None,
1101-
metadata={
1102-
"type": "Attribute",
1103-
"namespace": "http://www.w3.org/XML/1998/namespace",
1104-
}
1105-
)
1106-
1107-
11081092
class TargetGroupEnum(Enum):
11091093
KIDS_6 = "KIDS_6"
11101094
KIDS_12 = "KIDS_12"
@@ -1575,6 +1559,23 @@ class Meta:
15751559
)
15761560

15771561

1562+
@dataclass
1563+
class TagType:
1564+
class Meta:
1565+
name = "tagType"
1566+
1567+
value: Optional[str] = field(
1568+
default=None,
1569+
)
1570+
lang: Optional[Union[str, LangValue]] = field(
1571+
default=None,
1572+
metadata={
1573+
"type": "Attribute",
1574+
"namespace": "http://www.w3.org/XML/1998/namespace",
1575+
}
1576+
)
1577+
1578+
15781579
@dataclass
15791580
class TargetGroupsType:
15801581
class Meta:

reqif/models/omg_org_spec_req_if_20110401_reqif.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from dataclasses import dataclass, field
2-
from typing import List, Optional
2+
from typing import List, Optional, Union
33
from xsdata.models.datatype import XmlDateTime
44
from reqif.models.w3_org_1999_xhtml import (
55
XhtmlDivType,
66
XhtmlPType,
77
)
8+
from reqif.models.w3_org_xml_1998_namespace import LangValue
89

910
__NAMESPACE__ = "http://www.omg.org/spec/ReqIF/20110401/reqif.xsd"
1011

@@ -3201,7 +3202,7 @@ class Meta:
32013202
"type": "Element",
32023203
}
32033204
)
3204-
lang: Optional[str] = field(
3205+
lang: Optional[Union[str, LangValue]] = field(
32053206
default=None,
32063207
metadata={
32073208
"type": "Attribute",

0 commit comments

Comments
 (0)