Skip to content

Commit 5fc787d

Browse files
authored
Add note to semantic type example
It was reported by ADT Explorer users that a semantic property defined in one of their models was missing on the twin-level properties window. This was caused because they were not following the sequential order shown in the example. In the proposed change request, a note was added to the Semantic type example section highlighting the fact that the order of the elements in the array is relevant.
1 parent e9456c1 commit 5fc787d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/digital-twins/concepts-models.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,13 @@ The following example shows another version of the Home model, with a property f
151151

152152
Semantic types make it possible to express a value with a unit. Properties and telemetry can be represented with any of the semantic types that are supported by DTDL. For more information on semantic types in DTDL and what values are supported, see [Semantic types in the DTDL v2 spec](https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/dtdlv2.md#semantic-types).
153153

154-
The following example shows a Sensor model with a semantic-type telemetry for Temperature, and a semantic-type property for Humidity.
154+
The following example shows a Sensor model with a semantic-type telemetry for Temperature, and a semantic-type property for Humidity.
155155

156156
:::code language="json" source="~/digital-twins-docs-samples-getting-started/models/advanced-home-example/ISensor.json" highlight="7-18":::
157157

158+
> [!NOTE]
159+
> Currently, "Property" or "Telemetry" type must be the first element of the array followed by the semantic type. Otherwise, the field may not be visible in the Azure Digital Twins Explorer.
160+
158161
## Relationships
159162

160163
This section goes into more detail about *relationships* in DTDL models.

0 commit comments

Comments
 (0)