commit: ea67cd7621339baf5336b57a245a03ea66c3c43c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 7 16:08:56 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 7 16:08:56 2016 +0000
URL: https://gitweb.gentoo.org/data/xml-schema.git/commit/?id=ea67cd76
metadata: Correctly require downstream maintainer <email/>
metadata.xsd | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/metadata.xsd b/metadata.xsd
index 27039cd..111e1ec 100644
--- a/metadata.xsd
+++ b/metadata.xsd
@@ -11,11 +11,11 @@
<xs:field xpath='@lang'/>
<xs:field xpath='@restrict'/>
</xs:unique>
- <xs:unique name='maintainerUniquityConstraint'>
+ <xs:key name='maintainerKeyConstraint'>
<xs:selector xpath='maintainer'/>
<xs:field xpath='email'/>
<xs:field xpath='@restrict'/>
- </xs:unique>
+ </xs:key>
<xs:unique name='slotsUniquityConstraint'>
<xs:selector xpath='slots'/>
<xs:field xpath='@lang'/>
@@ -123,7 +123,8 @@
</xs:choice>
<xs:attribute name='type' type='maintainerTypeAttrType'
use='required'/>
- <xs:attribute name='restrict' type='restrictAttrType'/>
+ <xs:attribute name='restrict' type='restrictAttrType'
+ default=''/>
</xs:complexType>
<xs:simpleType name='maintainerTypeAttrType'>