Skip to content

Commit 72ff31e

Browse files
author
Jakub Winkler
committed
stystem_file.xsd - adding variartions for different comment nodes
1 parent 9160f27 commit 72ff31e

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
<xs:sequence>
179179
<xs:choice minOccurs="0" maxOccurs="unbounded">
180180
<xs:element name="label" type="xs:string" />
181-
<xs:element name="comment" type="xs:string" />
181+
<xs:element name="comment" type="commentType" minOccurs="0" />
182182
<xs:element name="tooltip" type="xs:string" />
183183
<xs:element name="hint" type="xs:string" />
184184
<xs:element name="frontend_class" type="xs:string" />
@@ -479,20 +479,12 @@
479479
</xs:restriction>
480480
</xs:simpleType>
481481

482-
<xs:element name="comment">
483-
<xs:annotation>
484-
<xs:documentation>
485-
Comment type
486-
</xs:documentation>
487-
</xs:annotation>
488-
489-
<xs:complexType mixed="true">
490-
<xs:sequence>
491-
<xs:any minOccurs="0" maxOccurs="1" processContents="lax" />
492-
</xs:sequence>
493-
<xs:attributeGroup ref="commentAttributeGroup"/>
494-
</xs:complexType>
495-
</xs:element>
482+
<xs:complexType name="commentType" mixed="true">
483+
<xs:sequence>
484+
<xs:element name="model" type="typeModel" minOccurs="0"/>
485+
</xs:sequence>
486+
<xs:attribute name="model" type="xs:string" use="optional"/>
487+
</xs:complexType>
496488

497489
<xs:simpleType name="typeConfigPath">
498490
<xs:annotation>

0 commit comments

Comments
 (0)