Skip to content

Commit 847a9b5

Browse files
committed
MAGETWO-34177: Simplification of Payment Configuration
- fix XSD
1 parent 7634d0e commit 847a9b5

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

app/code/Magento/Config/etc/system_file.xsd

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<xs:choice minOccurs="0" maxOccurs="unbounded">
2121
<xs:element ref="tab" />
2222
<xs:element ref="section" />
23-
<xs:element ref="include" />
23+
<xs:element name="include" type="includeType"/>
2424
</xs:choice>
2525
</xs:sequence>
2626
</xs:complexType>
@@ -65,17 +65,14 @@
6565
<xs:attribute name="extends" type="xs:string" use="optional" />
6666
</xs:attributeGroup>
6767

68-
<xs:element name="include">
68+
<xs:complexType name="includeType">
6969
<xs:annotation>
7070
<xs:documentation>
7171
Include Resource. Recursive complex type
7272
</xs:documentation>
7373
</xs:annotation>
74-
75-
<xs:complexType>
76-
<xs:attribute name="path" type="typePath" use="required" />
77-
</xs:complexType>
78-
</xs:element>
74+
<xs:attribute name="path" type="typePath" use="required" />
75+
</xs:complexType>
7976

8077
<xs:element name="tab">
8178
<xs:annotation>
@@ -108,7 +105,7 @@
108105
<xs:element name="header_css" type="xs:string" />
109106
<xs:element name="resource" type="typeAclResourceId" />
110107
<xs:element ref="group" />
111-
<xs:element ref="include" />
108+
<xs:element name="include" type="includeType"/>
112109
</xs:choice>
113110
</xs:sequence>
114111

@@ -150,7 +147,7 @@
150147
<xs:element ref="group" minOccurs="0" maxOccurs="unbounded"/>
151148
<xs:element ref="depends" />
152149
<xs:element ref="attribute" />
153-
<xs:element ref="include" />
150+
<xs:element name="include" type="includeType"/>
154151
</xs:choice>
155152
</xs:sequence>
156153

app/code/Magento/Config/etc/system_include.xsd

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@
66
*/
77
-->
88
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
9-
<xs:redefine schemaLocation="system_file.xsd">
10-
<xs:complexType name="configDeclaration">
11-
<xs:sequence>
12-
<xs:any minOccurs="0"/>
13-
</xs:sequence>
14-
</xs:complexType>
15-
</xs:redefine>
9+
<xs:include schemaLocation="system_file.xsd"/>
10+
<xs:element name="include" type="include" />
11+
<xs:complexType name="include">
12+
<xs:group minOccurs="1" maxOccurs="unbounded" ref="insertNodes"/>
13+
</xs:complexType>
14+
<xs:group name="insertNodes">
15+
<xs:choice>
16+
<xs:element ref="group" />
17+
<xs:element ref="tab" />
18+
<xs:element ref="section" />
19+
<xs:element ref="include" />
20+
</xs:choice>
21+
</xs:group>
1622
</xs:schema>

0 commit comments

Comments
 (0)