File tree Expand file tree Collapse file tree
bundles/org.openhab.core.thing/schema/thing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22<xs : schema xmlns : xs =" http://www.w3.org/2001/XMLSchema"
33 xmlns:thing-description=" https://openhab.org/schemas/thing-description/v1.0.0"
44 xmlns:config-description=" https://openhab.org/schemas/config-description/v1.0.0"
5- targetNamespace=" https://openhab.org/schemas/thing-description/v1.0.0" >
5+ targetNamespace=" https://openhab.org/schemas/thing-description/v1.0.0"
6+ xmlns:vc=" http://www.w3.org/2007/XMLSchema-versioning"
7+ vc:minVersion=" 1.1" >
68
79 <xs : import namespace =" https://openhab.org/schemas/config-description/v1.0.0"
810 schemaLocation=" https://openhab.org/schemas/config-description-1.0.0.xsd" />
215217 </xs : complexType >
216218
217219 <xs : complexType name =" tags" >
218- <xs : sequence >
219- <xs : element name =" tag" type =" xs:string" minOccurs =" 1" maxOccurs =" 2" />
220- </xs : sequence >
221- <xs : assert test =" count(tag[. = $semanticPointTag]) = 1 and count(tag[. = $semanticPropertyTag]) > 0" />
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 >
222225 </xs : complexType >
223226
224227 <xs : complexType name =" state" >
You can’t perform that action at this time.
0 commit comments