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: 'boolean' },
{ type: 'string' }, { type: 'string' },
{ type: 'number' }, { type: 'number' },
{ type: 'object' },
{ {
type: 'array', type: 'array',
minItems: 1, 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' }, collapsed: { type: 'boolean' },
summary: { type: 'string' }, summary: { type: 'string' },
label_singular: { type: 'string' }, label_singular: { type: 'string' },
fields: { type: 'object' }, fields: { type: 'array', items: { type: 'object' } },
max: { type: 'number' }, max: { type: 'number' },
min: { type: 'number' }, min: { type: 'number' },
i18n: { type: 'boolean' }, i18n: { type: 'boolean' },
add_to_top: { type: 'boolean' }, add_to_top: { type: 'boolean' },
types: { type: 'object' }, types: { type: 'array', items: { type: 'object' } },
type_key: { type: 'string' }, type_key: { type: 'string' },
}, },
}; };

View File

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