diff options
author | 2016-05-07 18:08:56 +0200 | |
---|---|---|
committer | 2016-05-07 18:08:56 +0200 | |
commit | ea67cd7621339baf5336b57a245a03ea66c3c43c (patch) | |
tree | 5c415e9d0dfa3c828477e37f2e0f19dca725d979 | |
parent | metadata: Fix allowing multiple <description/>s on maintainers (diff) | |
download | xml-schema-ea67cd7621339baf5336b57a245a03ea66c3c43c.tar.gz xml-schema-ea67cd7621339baf5336b57a245a03ea66c3c43c.tar.bz2 xml-schema-ea67cd7621339baf5336b57a245a03ea66c3c43c.zip |
metadata: Correctly require downstream maintainer <email/>
-rw-r--r-- | metadata.xsd | 7 |
1 files 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'> |