Skip to content

[BUG] boolean payload state is display as "yes"/"no" for an iot plug and play component #637

@ryanwinter

Description

@ryanwinter

Describe the bug
Boolean state in a DTDL command's request payload is rendered with the option of yes/no instead of true/false. This issue was introduced in version 0.15.8.

To Reproduce
Steps to reproduce the behavior:

  1. Install 0.15.8 or later
  2. Examine a device that has a DTDL model with a command that uses a boolean in the request payload, such as dtmi:azurertos:devkit:gsgmxchip;2.
  3. Examine the IoT Plug and Play components command panel.
  4. Observe that it provides state options as "Yes"/"No" instead of "True"/"False".

Expected behavior
Boolean values should be true/false, not yes/no.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • OS 11
  • 0.15.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds reviewReview required by team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions