Azure / iot-plugandplay-models-tools

Tools to manage the device-models repo
MIT License
13 stars 18 forks source link

DTDL v3 support in dmr-client #206

Closed bernardpletikosa closed 1 year ago

bernardpletikosa commented 1 year ago

Hi,

DTDL v3 is in GA and it can be used in ADT.

We are using dmr-client to validate models before uploading them to ADT instances and in general to help with development and make sure nothing broken is merged. Is there a date when we can expect dmr-client to support DTDL v3?

P.S. Question originally posted on Microsoft Q&A

digimaun commented 1 year ago

Hey @bernardpletikosa,

The latest dmr-client should already support DTDL v3. There is a --max-dtdl-version parameter where you can specify the desired max DTDL support level. It currently defaults to 2.

For example:

dmr-client validate --max-dtdl-version 3 --model-file /path/to/model.json

Let us know if this resolves the issue.