Skip to content

Commit

Permalink
add lifecyclestate to xbmc.addon/metadata.xsd
Browse files Browse the repository at this point in the history
This to allow check about new addon.xml's
  • Loading branch information
AlwinEsch committed Sep 12, 2020
1 parent f533dd3 commit 8706a45
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion addons/xbmc.addon/metadata.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<xs:element name="website" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="source" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="email" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="broken" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="lifecyclestate" type="translatedLifecycleState" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="news" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="reuselanguageinvoker" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
<xs:element name="assets" type="assetsList" minOccurs="0" maxOccurs="1"/>
Expand All @@ -36,6 +36,14 @@
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="translatedLifecycleState">
<xs:simpleContent>
<xs:extension base="nonEmptyStringCapped">
<xs:attribute name="type" type="lifecycleStateType" use="required"/>
<xs:attribute name="lang" type="langIdentifier"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="platformType">
<xs:restriction base="xs:string">
<xs:enumeration value="linux"/>
Expand All @@ -55,6 +63,13 @@
<xs:pattern value="[a-z]{2,3}(_[A-Z]{2}(@\S+)?)?"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="lifecycleStateType">
<xs:restriction base="xs:string">
<xs:enumeration value="normal"/>
<xs:enumeration value="deprecated"/>
<xs:enumeration value="broken"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="assetsList">
<xs:choice maxOccurs="unbounded">
<xs:element name="icon" type="xs:string" minOccurs="0" maxOccurs="1"/>
Expand Down

0 comments on commit 8706a45

Please sign in to comment.