minor #11482 [Routing] simplify the XML schema file (xabbuh)

This PR was merged into the 2.4 branch.

Discussion
----------

[Routing] simplify the XML schema file

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Conditions that are defined for certain routes are just simple strings.
Thus, there is no need to use a dedicated element when xsd:string does
the same (as mentioned by @tobion in #11394).

Commits
-------

dbac46a [Routing] simplify the XML schema file
This commit is contained in:
Fabien Potencier 2014-07-27 10:01:39 +02:00
commit 9b5f56c7cc
1 changed files with 1 additions and 6 deletions

View File

@ -29,7 +29,7 @@
<xsd:element name="default" nillable="true" type="element" />
<xsd:element name="requirement" type="element" />
<xsd:element name="option" type="element" />
<xsd:element name="condition" type="condition" />
<xsd:element name="condition" type="xsd:string" />
</xsd:choice>
</xsd:group>
@ -62,9 +62,4 @@
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="condition">
<xsd:restriction base="xsd:string">
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>