Skip to content

Commit

Permalink
Add CDF schema for party leaders and their tenures.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 648703662
  • Loading branch information
civics-copybara committed Jul 2, 2024
1 parent 4a387f8 commit e338005
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions civics_cdf_spec.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@
<xs:enumeration value="temporary-appointment"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PartyLeadershipType">
<xs:restriction base="xs:string">
<xs:enumeration value="party-chair"/>
<xs:enumeration value="party-leader"/>
</xs:restriction>
</xs:simpleType>
<!-- ========== Elements ========== -->
<xs:complexType name="AnnotatedString">
<xs:simpleContent>
Expand Down Expand Up @@ -584,6 +590,7 @@
<xs:element minOccurs="0" name="ContactInformation" type="ContactInformation" />
<xs:element minOccurs="0" name="ExternalIdentifiers" type="ExternalIdentifiers" />
<xs:element minOccurs="0" name="IsIndependent" type="xs:boolean"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Leadership" type="PartyLeadership"/>
<xs:element minOccurs="0" name="LogoUri" type="AnnotatedUri" />
<xs:element name="Name" type="InternationalizedText" />
<xs:element minOccurs="0" name="PartyScopeGpUnitIds" type="xs:IDREFS" />
Expand Down Expand Up @@ -783,4 +790,14 @@
<xs:element maxOccurs="1" minOccurs="0" name="StartDate" type="PartialDate"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PartyLeadership">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" name="EndDate" type="PartialDate"/>
<xs:element minOccurs="0" name="ExternalIdentifiers" type="ExternalIdentifiers"/>
<xs:element maxOccurs="1" minOccurs="1" name="PartyLeaderId" type="xs:IDREF"/>
<xs:element maxOccurs="1" minOccurs="0" name="StartDate" type="PartialDate"/>
<xs:element maxOccurs="1" minOccurs="1" name="Type" type="PartyLeadershipType"/>
</xs:sequence>
<xs:attribute name="objectId" type="xs:ID" use="required"/>
</xs:complexType>
</xs:schema>
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
See https://packaging.python.org/guides/single-sourcing-package-version/
"""

__version__ = '1.44.dev4'
__version__ = '1.44.dev5'

0 comments on commit e338005

Please sign in to comment.