diff options
author | enen92 <92enen@gmail.com> | 2018-08-02 18:07:04 +0100 |
---|---|---|
committer | enen92 <92enen@gmail.com> | 2018-08-08 15:44:10 +0100 |
commit | 6e60bb7d8c55f30277f9af8aafea9fb70de9fdee (patch) | |
tree | a2f6d72beba5e04eead35dbb54427fad15adb6c9 /addons | |
parent | bf724c693130836e1b7e810d949ca4f10a33191a (diff) |
[schemas] contextmenu.item addons - restrict allowed values in menu and extension id attributes
Diffstat (limited to 'addons')
-rw-r--r-- | addons/xbmc.python/contextitem.xsd | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/addons/xbmc.python/contextitem.xsd b/addons/xbmc.python/contextitem.xsd index fcbb3b079d..76f399e81a 100644 --- a/addons/xbmc.python/contextitem.xsd +++ b/addons/xbmc.python/contextitem.xsd @@ -6,8 +6,8 @@ <xs:sequence> <xs:element name="menu" type="menuType" minOccurs="1" maxOccurs="unbounded"/> </xs:sequence> - <xs:attribute name="point" type="xs:string" use="required"/> - <xs:attribute name="id" type="simpleIdentifier"/> + <xs:attribute name="point" type="pointIdentifier" use="required"/> + <xs:attribute name="id" type="menuIdentifier"/> </xs:complexType> </xs:element> <xs:complexType name="itemType"> @@ -25,9 +25,14 @@ </xs:choice> <xs:attribute name="id" type="xs:string"/> </xs:complexType> - <xs:simpleType name="simpleIdentifier"> + <xs:simpleType name="pointIdentifier"> <xs:restriction base="xs:string"> - <xs:pattern value="[^.]+"/> + <xs:pattern value="kodi.context.item"/> </xs:restriction> </xs:simpleType> -</xs:schema> + <xs:simpleType name="menuIdentifier"> + <xs:restriction base="xs:string"> + <xs:pattern value="kodi.core.main|kodi.core.manage"/> + </xs:restriction> + </xs:simpleType> +</xs:schema>
\ No newline at end of file |