fix: schema issues

This commit is contained in:
Daniel Lautzenheiser 2023-04-17 10:53:50 -04:00
parent ecb1218646
commit eae0e49642
2 changed files with 12 additions and 4 deletions

View File

@ -5,10 +5,18 @@ export default {
{ type: 'boolean' },
{ type: 'string' },
{ type: 'number' },
{ type: 'object' },
{
type: 'array',
minItems: 1,
items: { oneOf: [{ type: 'boolean' }, { type: 'string' }, { type: 'number' }] },
items: {
oneOf: [
{ type: 'boolean' },
{ type: 'string' },
{ type: 'number' },
{ type: 'object' },
],
},
},
],
},
@ -16,12 +24,12 @@ export default {
collapsed: { type: 'boolean' },
summary: { type: 'string' },
label_singular: { type: 'string' },
fields: { type: 'object' },
fields: { type: 'array', items: { type: 'object' } },
max: { type: 'number' },
min: { type: 'number' },
i18n: { type: 'boolean' },
add_to_top: { type: 'boolean' },
types: { type: 'object' },
types: { type: 'array', items: { type: 'object' } },
type_key: { type: 'string' },
},
};

View File

@ -4,6 +4,6 @@ export default {
collapsed: { type: 'boolean' },
summary: { type: 'string' },
i18n: { type: 'boolean' },
fields: { type: 'object' },
fields: { type: 'array', items: { type: 'object' } },
},
};