Skip to content

Commit b32a33a

Browse files
committed
Add empty price settings group in XSD
I did a bit of code digging but couldn't figure out why the price component definition did not have any valid/configured child nodes for <settings> whatsoever. I decided that the best route would be to add blank groups with the proper labels, so that the actual validation results remain unchanged, but the skeleton now exists for future developers to add valid configuration.
1 parent 2d75f25 commit b32a33a

File tree

1 file changed

+24
-0
lines changed
  • app/code/Magento/Ui/view/base/ui_component/etc/definition

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,31 @@
1212
<xs:complexType name="componentPrice">
1313
<xs:sequence>
1414
<xs:group ref="configurable" minOccurs="0" maxOccurs="unbounded"/>
15+
<xs:element name="settings" minOccurs="0" maxOccurs="1">
16+
<xs:complexType>
17+
<xs:choice maxOccurs="unbounded" minOccurs="0">
18+
<xs:group ref="componentPriceSettings"/>
19+
</xs:choice>
20+
</xs:complexType>
21+
</xs:element>
1522
</xs:sequence>
1623
<xs:attributeGroup ref="ui_element_attributes"/>
1724
</xs:complexType>
25+
26+
<xs:complexType name="formElementPrice">
27+
<xs:sequence>
28+
<xs:element name="settings" minOccurs="0" maxOccurs="1">
29+
<xs:complexType>
30+
<xs:choice maxOccurs="unbounded" minOccurs="0">
31+
<xs:group ref="componentPriceSettings"/>
32+
</xs:choice>
33+
</xs:complexType>
34+
</xs:element>
35+
</xs:sequence>
36+
</xs:complexType>
37+
38+
<xs:group name="componentPriceSettings">
39+
<xs:choice>
40+
</xs:choice>
41+
</xs:group>
1842
</xs:schema>

0 commit comments

Comments
 (0)