summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metadata.xsd11
1 files changed, 5 insertions, 6 deletions
diff --git a/metadata.xsd b/metadata.xsd
index 41a8fca..cad8304 100644
--- a/metadata.xsd
+++ b/metadata.xsd
@@ -61,6 +61,10 @@
</xs:unique>
</xs:element>
<xs:element name='upstream' type='upstreamType'>
+ <xs:unique name='upstreamMaintainerUniquityConstraint'>
+ <xs:selector xpath='maintainer'/>
+ <xs:field xpath='name'/>
+ </xs:unique>
<xs:unique name='bugsToSingleConstraint'>
<xs:selector xpath='bugs-to'/>
<xs:field xpath='@fake-only-once'/>
@@ -99,12 +103,7 @@
<!-- the huge <upstream/> structure -->
<xs:complexType name='upstreamType'>
<xs:choice minOccurs='0' maxOccurs='unbounded'>
- <xs:element name='maintainer' type='upstreamMaintainerType'>
- <xs:unique name='upstreamMaintainerUniquityConstraint'>
- <xs:selector xpath='maintainer'/>
- <xs:field xpath='name'/>
- </xs:unique>
- </xs:element>
+ <xs:element name='maintainer' type='upstreamMaintainerType'/>
<xs:element name='changelog' type='urlOnceType'/>
<xs:element name='doc' type='upstreamDocType'/>
<xs:element name='bugs-to' type='urlOnceType'/>