Skip to content

Commit 0750a16

Browse files
committed
Add button formElement XSD config
Again, this error was discovered during the Travis CI build, specifically during validation of /app/code/Magento/Theme/view/adminhtml/ui_component/design_config_form.xml, line 275.
1 parent 64adba9 commit 0750a16

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

app/code/Magento/Ui/etc/ui_configuration.xsd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
<xs:element name="radioset" type="formElementRadioset" maxOccurs="unbounded"/>
228228
<xs:element name="wysiwyg" type="formElementWysiwyg" maxOccurs="unbounded"/>
229229
<xs:element name="fileUploader" type="formElementFileUploader" maxOccurs="unbounded"/>
230+
<xs:element name="button" type="formElementButton" maxOccurs="unbounded"/>
230231
</xs:choice>
231232
</xs:group>
232233

app/code/Magento/Ui/view/base/ui_component/etc/definition/button.xsd

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@
2323
<xs:attributeGroup ref="ui_element_attributes"/>
2424
</xs:complexType>
2525

26+
<xs:complexType name="formElementButton">
27+
<xs:sequence>
28+
<xs:element name="settings" minOccurs="0" maxOccurs="1">
29+
<xs:complexType>
30+
<xs:choice minOccurs="0" maxOccurs="unbounded">
31+
<xs:group ref="componentButtonSettings"/>
32+
</xs:choice>
33+
</xs:complexType>
34+
</xs:element>
35+
</xs:sequence>
36+
<xs:attributeGroup ref="ui_element_attributes"/>
37+
</xs:complexType>
38+
2639
<xs:group name="componentButtonSettings">
2740
<xs:choice>
2841
<xs:group ref="uiElementSettings"/>

0 commit comments

Comments
 (0)