Azure / opendigitaltwins-dtdl

Digital Twins Definition Language
Creative Commons Attribution 4.0 International
466 stars 160 forks source link

DTDL v2 validation #113

Closed tobilg closed 3 years ago

tobilg commented 3 years ago

Sorry for maybe asking a newbie question: Are there any plans to provide a JSON schema of the DTDL v2 definition, so that Interface definitions can be formally validated?

briancr-ms commented 3 years ago

We provide a DTDL parser (currently only in C#) that provides validation: https://www.nuget.org/packages/Microsoft.Azure.DigitalTwins.Parser/3.12.5.

DTDL is defined as a set of RDF classes along with constraints. We are looking at publishing the DTDL metamodel (classes + constraints) but aren't quite ready to do this yet.

askpatrickw commented 3 years ago

What about using the VSCode DTDL plugin ? https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.vscode-dtdl

briancr-ms commented 3 years ago

Yes, the VS Code DTDL extension is great, too!