Closed johnhaire89 closed 4 years ago
Thanks @johnhaire89,
I followed your repro steps but the exported JSON does not include the offending "contents": []
.
There was another issue related to support @context
with an Array.
Both issues should be fixed now, let me know if you can still repro.
@johnhaire89 have you been able to repro it with the latest version?
closing due to the lack of response. @johnhaire89 if you still reproes this issue, please reactivate.
Not sure if it's an issue with IoT Central or an issue with the json schema document, but there seems to be a mismatch.
To reproduce this, we can create a new device template in IoT Central by importing the capability model for the MXChip IoT DevKit. I then exported the capability model and tried to run the "IoT Plug and Play: Generate Device Code Stub" within VS Code.
The error returned is
I managed to fix it by deleting
"contents": [],
near the bottom of the json document.