MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.45k forks source link

DTDL multi component JSON samples are wrong. #66575

Closed pelikhan closed 3 years ago

pelikhan commented 3 years ago

Components should be wrapped into a JSON array.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

rido-min commented 3 years ago

@pelikhan can you elaborate? which sample? it will help if you can point to the exact line number where you expected the JSON array.

pelikhan commented 3 years ago

image

rido-min commented 3 years ago

Components should be wrapped into a JSON array.

The DTDL spec does specify any format to include multiple interfaces in a single file.

The sample shows two JSON document in the same snippet. @dominicbetts should we create one snippet per JSON file?

PS: We are using the JSON array in the expanded format for import/export from the Device Model Repo to/from Central.

dominicbetts commented 3 years ago

@rido-min, @pelikhan - I'm updating the article to make clear that the snippets come from two JSON documents.

dominicbetts commented 3 years ago

please-close