summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-03-18 10:14:38 +0100
committerMichał Górny <mgorny@gentoo.org>2016-03-18 10:16:49 +0100
commitdf503aacd21bb82990756297975f7a349fe5cd4c (patch)
tree05539669c8bc51a5c2085c14ae9e2e1c17aec09b
parentmetadata: Allow multiple <doc/> elements with the same language (diff)
downloadxml-schema-df503aacd21bb82990756297975f7a349fe5cd4c.tar.gz
xml-schema-df503aacd21bb82990756297975f7a349fe5cd4c.tar.bz2
xml-schema-df503aacd21bb82990756297975f7a349fe5cd4c.zip
metadata: Prevent (accidental?) duplicate maintainer entries
-rw-r--r--metadata.xsd5
1 files changed, 5 insertions, 0 deletions
diff --git a/metadata.xsd b/metadata.xsd
index 962cda1..4620716 100644
--- a/metadata.xsd
+++ b/metadata.xsd
@@ -8,6 +8,11 @@
<xs:field xpath='@lang'/>
<xs:field xpath='@restrict'/>
</xs:unique>
+ <xs:unique name='maintainerUniquityConstraint'>
+ <xs:selector xpath='maintainer'/>
+ <xs:field xpath='email'/>
+ <xs:field xpath='@restrict'/>
+ </xs:unique>
<xs:unique name='slotsUniquityConstraint'>
<xs:selector xpath='slots'/>
<xs:field xpath='@lang'/>