Skip to content

Commit 2b4ad5e

Browse files
committed
use ai to improve
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
1 parent 96a23c0 commit 2b4ad5e

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

bundles/org.openhab.core.thing/schema/thing/thing-description-1.0.0.xsd

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,16 @@
217217
</xs:complexType>
218218

219219
<xs:complexType name="tags">
220-
<xs:element name="tag" minOccurs="1" maxOccurs="2">
221-
<xs:alternative test="position() = 1" type="thing-description:semanticPointTag"/>
222-
<xs:alternative test="position() = 2" type="thing-description:semanticPropertyTag"/>
223-
<xs:alternative type="xs:error"/> <!-- If more than two tags are present -->
224-
</xs:element>
220+
<xs:sequence>
221+
<xs:element name="tag">
222+
<xs:alternative test="position() = 1" type="thing-description:semanticPointTag"/>
223+
<xs:alternative type="xs:error"/>
224+
</xs:element>
225+
<xs:element name="tag" minOccurs="0">
226+
<xs:alternative test="position() = 2" type="thing-description:semanticPropertyTag"/>
227+
<xs:alternative type="xs:error"/>
228+
</xs:element>
229+
</xs:sequence>
225230
</xs:complexType>
226231

227232
<xs:complexType name="state">

0 commit comments

Comments
 (0)