diff options
Diffstat (limited to 'metadata/xml-schema')
-rw-r--r-- | metadata/xml-schema/metadata.xsd | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/metadata/xml-schema/metadata.xsd b/metadata/xml-schema/metadata.xsd index 111e1ecfe323..cad830485bbc 100644 --- a/metadata/xml-schema/metadata.xsd +++ b/metadata/xml-schema/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'/> @@ -168,7 +167,7 @@ <xs:element name='cat' type='catType'/> </xs:choice> <xs:attribute name='lang' type='langAttrType' default='en'/> - <xs:attribute name='restrict' type='restrictAttrType'/> + <xs:attribute name='restrict' type='restrictAttrType' default=''/> </xs:complexType> <xs:complexType name='catLongDescType' mixed='true'> |