update a twin a property with enum type
Closed this issue · 3 comments
jthin commented
Hello.
Since recently, I cannot update a twin property with enum property.
To reproduce this, you can use PowerLine.json and import it in Azure Digital Twins Explorer (https://explorer.digitaltwins.azure.net/).
Before, I was able to update an enum property as a string property.
ccrowley96 commented
Thanks for the submission. The new property inspector doesn't currently support the reusable schemas
property on DTDL interfaces. We're working on adding support for that now.
"schemas": [
{
"@type": "Enum",
"valueSchema": "string",
"@id": "dtmi:example:grid:gridTypeEnum;1",
"enumValues": [
{
"name": "ExtraHighVoltage",
"enumValue": "ExtraHighVoltage"
},
{
"name": "HighVoltage",
"enumValue": "HighVoltage"
},
{
"name": "Distribution",
"enumValue": "Distribution"
}
]
}
]
ccrowley96 commented
The latest updates to https://explorer.digitaltwins.azure.net/ and the main
branch of this repo fix! Please let us know if this isn't the case. Closing this issue for now.
jthin commented
@ccrowley96 Thank you for this fix. It solves the problem.