Skip to content

Add support for "multiple" select #41

@cedricmessiant

Description

@cedricmessiant

I need to be able to create select fields with the possibilty to select multiple values.
I can work on it but I'm not sure which way I should go with jsonschema.

My intuition is to use a schema that looks like this :

myField: {
  type: 'array',
  title: 'My field',
  items: {
    type: 'string',
    enum: ['foo', 'bar'],
  }
}

maybe with an alternative widget multiselect for example.

What are your opinions about this ?

I will probably also need to support enumNames (See https://github.com/json-schema/json-schema/wiki/enumNames-(v5-proposal) )

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