Skip to content

Support for enum within an array #1286

@braghettos

Description

@braghettos

Hi everyone,

I was looking for a way to support the following json schema:

          "properties": {
            "allowedResources": {
              "description": "the list of resources that are allowed to be children of this widget or referenced by it",
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "barcharts",
                  "buttons",
                  "eventlists",
                  "filters",
                  "flowcharts",
                  "forms",
                  "linecharts",
                  "markdowns",
                  "panels",
                  "paragraphs",
                  "piecharts",
                  "tables",
                  "tablists",
                  "yamlviewers"
                ]
              }
            }

Is there a marker that allows this use case?

Thanks for any feedback!

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