Skip to content

Commit 1a71742

Browse files
committed
Additional schema fixes
1 parent 91e8c74 commit 1a71742

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/app/zap-templates/zcl/zcl.xsd

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This schema describes the format of the XML files, that describe the ZCL specifi
1010
</xs:annotation>
1111
<xs:simpleType name="integerWithHex">
1212
<xs:restriction base="xs:string">
13-
<xs:pattern value="0x[0-9A-Fa-f]+|[0-9]+"/>
13+
<xs:pattern value="-?0x[0-9A-Fa-f]+|[0-9]+"/>
1414
</xs:restriction>
1515
</xs:simpleType>
1616
<xs:complexType name="access">
@@ -67,6 +67,7 @@ This schema describes the format of the XML files, that describe the ZCL specifi
6767
<xs:attribute name="max" type="integerWithHex"/>
6868
<xs:attribute name="default" type="xs:string"/>
6969
<xs:attribute name="isNullable" type="xs:boolean"/>
70+
<xs:attribute name="optional" type="xs:boolean" default="false"/>
7071
</xs:complexType>
7172
<xs:complexType name="featureBit" mixed="true">
7273
<xs:attribute name="tag" use="required" type="xs:string"/>
@@ -263,7 +264,11 @@ This schema describes the format of the XML files, that describe the ZCL specifi
263264
<xs:element name="bitmap">
264265
<xs:complexType>
265266
<xs:sequence>
266-
<xs:element minOccurs="0" maxOccurs="unbounded" name="cluster"/>
267+
<xs:element minOccurs="0" maxOccurs="unbounded" name="cluster">
268+
<xs:complexType>
269+
<xs:attribute name="code" type="integerWithHex"/>
270+
</xs:complexType>
271+
</xs:element>
267272
<xs:element maxOccurs="unbounded" ref="field"/>
268273
</xs:sequence>
269274
<xs:attribute name="name" use="required" type="xs:string"/>

0 commit comments

Comments
 (0)