Skip to content

[Feature]: Allow an array of types for type definitions #227

Open
@janechu

Description

What package(s) should this feature be added to?

design-to-code, design-to-code-react

Summary

The JSON schema allows for an array of defined types, this should look like:

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

This should ideally involve a select dropdown with the types available, and if data is present should check to see which type it is and map to that type. If not the first type in the array should be selected by default and the default control shown for that type.

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

  • Status

    Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions