26 lines
567 B
JavaScript
26 lines
567 B
JavaScript
export default {
|
|
properties: {
|
|
multiple: { type: 'boolean' },
|
|
min: { type: 'integer' },
|
|
max: { type: 'integer' },
|
|
options: {
|
|
type: 'array',
|
|
items: {
|
|
oneOf: [
|
|
{ type: 'string' },
|
|
{ type: 'number' },
|
|
{
|
|
type: 'object',
|
|
properties: {
|
|
label: { type: 'string' },
|
|
value: { oneOf: [{ type: 'string' }, { type: 'number' }] },
|
|
},
|
|
required: ['label', 'value'],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
required: ['options'],
|
|
};
|