Skip to content

Modify JSON Validation for Optgroup support #1813

Closed
@Enola-guy

Description

@Enola-guy

Hello, I've successfully created the widget to support optgroup select (i.e. categories inside a select). I'm now seeking help for the validation.

In order to generate the categories I give a dict instead of a list to my "enum" field. How can I modify the JSON validation to avoid the error .enum should be array

Here is the codepen of my implementation:
https://codepen.io/enola-guy/pen/ZEQOVEN

If you can explain me the steps missing, I would gladly open a PR in order to make this feature in the main branch :)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions