]> source.dussan.org Git - nextcloud-server.git/commitdiff
Allow zero occurences of route in XML schemas
authorChristopher Ng <chrng8@gmail.com>
Fri, 3 Feb 2023 01:11:17 +0000 (17:11 -0800)
committerChristopher Ng <chrng8@gmail.com>
Fri, 3 Feb 2023 01:11:17 +0000 (17:11 -0800)
- For xmllint

Signed-off-by: Christopher Ng <chrng8@gmail.com>
resources/app-info-shipped.xsd
resources/app-info.xsd

index 031579ad5a374234483a0b0faacc3d5bc99caa55..c11264142ebfbda79cc16dc8a254c4fb4398a995 100644 (file)
         <xs:sequence>
             <xs:element name="id" type="id" minOccurs="0" maxOccurs="1"/>
             <xs:element name="name" type="non-empty-string" minOccurs="1" maxOccurs="1"/>
-            <xs:element name="route" type="route" minOccurs="1" maxOccurs="1"/>
+            <xs:element name="route" type="route" minOccurs="0" maxOccurs="1"/>
             <xs:element name="icon" type="xs:anyURI" minOccurs="0" maxOccurs="1"/>
             <xs:element name="order" type="xs:int" minOccurs="0" maxOccurs="1"/>
             <xs:element name="type" type="navigation-type" minOccurs="0" maxOccurs="1"/>
index 1c7cc5c47e43253d28dd5af30a1d057ed5b18b4c..191c8ed7c5b0b864dd8037d3467cba615c03fb00 100644 (file)
         <xs:sequence>
             <xs:element name="id" type="id" minOccurs="0" maxOccurs="1"/>
             <xs:element name="name" type="non-empty-string" minOccurs="1" maxOccurs="1"/>
-            <xs:element name="route" type="route" minOccurs="1" maxOccurs="1"/>
+            <xs:element name="route" type="route" minOccurs="0" maxOccurs="1"/>
             <xs:element name="icon" type="xs:anyURI" minOccurs="0" maxOccurs="1"/>
             <xs:element name="order" type="xs:int" minOccurs="0" maxOccurs="1"/>
             <xs:element name="type" type="navigation-type" minOccurs="0" maxOccurs="1"/>