[BUG] IoT PnP: Empty string not allowed in "mapValue": { "name": "xyz", "schema": "string"} #505
Labels
backlog
by design
This is working as it was designed to.
DTDL
enhancement
New feature or request
Plug and Play
Feature: Plug and Play related
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:
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):
The text was updated successfully, but these errors were encountered: