summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sundong Ahn <sundongahn@google.com> 2019-12-20 16:33:46 +0900
committer Sundong Ahn <sundongahn@google.com> 2019-12-20 16:54:52 +0900
commit33bca5b12b4df831cbd787374cf7d6be7fc362a9 (patch)
treec437c916a4be1677a70a19077ab3e772d0cbfbd5
parentc0c28a2671f30a6215228fcec3bc16dbead73704 (diff)
Add minOccurs="0"
For privapp-permissions and oem-permissions elements, some xml files don't need to permission and deny-permission properties. So add the minOccurs="0" for these elements. Test: vts-tradefed run vts -m VtsValidatePermission Bug: 143251304 Change-Id: Ib93a40e646f9c65bd62d23396c12ea31f2d735d8
-rw-r--r--core/xsd/permission.xsd8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/xsd/permission.xsd b/core/xsd/permission.xsd
index 9520db767350..cc01a31224bc 100644
--- a/core/xsd/permission.xsd
+++ b/core/xsd/permission.xsd
@@ -126,12 +126,12 @@
</xs:complexType>
<xs:complexType name="privapp-permissions">
<xs:sequence>
- <xs:element name="permission" maxOccurs="unbounded">
+ <xs:element name="permission" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
</xs:element>
- <xs:element name="deny-permission" maxOccurs="unbounded">
+ <xs:element name="deny-permission" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
@@ -141,12 +141,12 @@
</xs:complexType>
<xs:complexType name="oem-permissions">
<xs:sequence>
- <xs:element name="permission" maxOccurs="unbounded">
+ <xs:element name="permission" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
</xs:element>
- <xs:element name="deny-permission" maxOccurs="unbounded">
+ <xs:element name="deny-permission" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>