Permalink
Browse files

make resource and key attributes required in xsd

  • Loading branch information...
1 parent 02e01b9 commit 1a60a3ceb58b9c70b9a42af1f67b3ae4dce25adf @Tobion Tobion committed Dec 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Symfony/Component/Routing/Loader/schema/routing/routing-1.0.xsd
@@ -43,7 +43,7 @@
<xsd:complexType name="import">
<xsd:group ref="configs" minOccurs="0" maxOccurs="unbounded" />
- <xsd:attribute name="resource" type="xsd:string" />
+ <xsd:attribute name="resource" type="xsd:string" use="required" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="prefix" type="xsd:string" />
<xsd:attribute name="hostname-pattern" type="xsd:string" />
@@ -52,7 +52,7 @@
<xsd:complexType name="element">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
- <xsd:attribute name="key" type="xsd:string" />
+ <xsd:attribute name="key" type="xsd:string" use="required" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>

0 comments on commit 1a60a3c

Please sign in to comment.