author | description | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|
baanders |
include file describing how to validate Azure Digital Twins models |
digital-twins |
include |
8/7/2020 |
baanders |
Tip
After creating a model, it's recommended to validate your models offline before uploading them to your Azure Digital Twins instance.
There is a language-agnostic DTDL Validator sample for validating model documents to make sure the DTDL is correct before uploading it to your instance.
The DTDL validator sample is built on a .NET DTDL parser library, which is available on NuGet as a client-side library: Microsoft.Azure.DigitalTwins.Parser. You can also use the library directly to design your own validation solution. When using the parser library, make sure to use a version that is compatible with the version that Azure Digital Twins is running. Currently, this is version 3.12.4.
You can learn more about the validator sample and parser library, including usage examples, in How-to: Parse and validate models.