Azure / opendigitaltwins-dtdl

Digital Twins Definition Language
Creative Commons Attribution 4.0 International
478 stars 162 forks source link

No schema/description for data type "Unit" #23

Closed yphuangms closed 5 years ago

yphuangms commented 5 years ago

In "Field" or "Telemetry" schema description, there exists "displayUnit" and "unit". For "displayUnit" is of data type "string", and "unit" is of data type "Unit", there's no description in further to define schema for "Unit". Is it a primitive data type? How does it looks like?

Thanks!

ghost commented 5 years ago

Related to #27

briancr-ms commented 5 years ago

Thanks for your feedback. You're right that this preview is not complete in regards to the unit property and Unit metamodel class. In this preview release there's no way to use the unit property or create a custom Unit metamodel class. For now, only displayUnit is fully supported.