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:
commit
9b5f56c7cc
@ -29,7 +29,7 @@
|
|||||||
<xsd:element name="default" nillable="true" type="element" />
|
<xsd:element name="default" nillable="true" type="element" />
|
||||||
<xsd:element name="requirement" type="element" />
|
<xsd:element name="requirement" type="element" />
|
||||||
<xsd:element name="option" type="element" />
|
<xsd:element name="option" type="element" />
|
||||||
<xsd:element name="condition" type="condition" />
|
<xsd:element name="condition" type="xsd:string" />
|
||||||
</xsd:choice>
|
</xsd:choice>
|
||||||
</xsd:group>
|
</xsd:group>
|
||||||
|
|
||||||
@ -62,9 +62,4 @@
|
|||||||
</xsd:extension>
|
</xsd:extension>
|
||||||
</xsd:simpleContent>
|
</xsd:simpleContent>
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
|
|
||||||
<xsd:simpleType name="condition">
|
|
||||||
<xsd:restriction base="xsd:string">
|
|
||||||
</xsd:restriction>
|
|
||||||
</xsd:simpleType>
|
|
||||||
</xsd:schema>
|
</xsd:schema>
|
||||||
|
Reference in New Issue
Block a user