Closed Salazander closed 1 year ago
Hi @Salazander The asterisk start beside 'entry' does indicate this is a required property. At the time everything is a required a property, so that's what this tool is enforcing. I remember there has been discussions around DTDL languages support optional property before, unfortunately we are lacking bandwidth to update the tool to keep up the latest. Will keep this item in our backlog, and when the time comes we will update the tool to be compliant with DTDL v3
Fixed released in https://github.com/Azure/azure-iot-explorer/releases/tag/v0.15.8. Closing.
Describe the bug I'm working on the DTDL definition of a new OSConfig module. Here's the work in progress: https://github.com/Salazander/iot-plugandplay-models/blob/main/dtmi/osconfig/pmc-1.json I tried to set a "mapValue" of type "string" to "" (empty string) using Azure IoT Explorer, but the input validation rejects empty strings.
Since setting an empty string is overloaded with a very specific meaning in our case, setting "" as mapValue is valid from our point of view. Is there anything in the docs that suggest that empty strings are invalid? https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/dtdlv2.md#map
To Reproduce Steps to reproduce the behavior:
Add a writeable Property with a map to any PnP Model that gets loaded from a local folder
Open Device -> Module identities > IoT Plug and Play components -> Properties (writable)
Try to set an empty string as input parameter for entry
-> Input validation fails
Expected behavior An empty string "" is a valid input parameter for mapValues of type "string"
Screenshots Note the unrelated validation issue with numbers.
Desktop (please complete the following information):