Skip to content

Defining a type as an array of strings #960

@Non0mnisMoriar

Description

@Non0mnisMoriar

First of all thank you for this amazing tool - I've been looking for a good JSON Schema editor and tried nearly all of the (few) free ones, but I was always missing a feature and especially a good diagram view. Meta-configurator is simply all I wanted and I now use it whenever I need to design a JSON Schema.

One of the enhancements I would suggest though is something that in my opinion feels like an important "miss" but quite crucial whenever you want to design a JSON Schema say for API data structure definition: being able to define the type of an item as an array of strings (as specified here: https://json-schema.org/draft/2020-12/json-schema-validation#name-type), essentially enabling items to be of any defined type.
What for me makes this important is the possibility to basically declare an item as "nullable" in a JSON, through this kind of definition:

{ "type": ["string", "null"] }

Unfortunately I have virtually no knowledge of Vue.js to be able to develop such a feature and submit a PR myself... But it felt like a meaningful enhancement suggestion.
Thanks!

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