Skip to content

Decision color-set should validate that there's at least one value #167

@vanessacor

Description

@vanessacor

How to reproduce it

  • create a color-set decision and set the params.value to an empty array:
    { "model": "color-set/explicit", "name": "Bar", "params": { "values": [] } }

What happens

Decision is not render and no feedback is given

What should happen

Validation should happen and an error should be display as a decision error

Fix

Related:

In all set/scale of explicit models, declare that values needs to have at least 1 item

https://stackoverflow.com/questions/49910889/typescript-array-with-minimum-length

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions