feat: add widgets schema validation (#3841)
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
import controlComponent from './ObjectControl';
|
||||
import previewComponent from './ObjectPreview';
|
||||
import schema from './schema';
|
||||
|
||||
const Widget = (opts = {}) => ({
|
||||
name: 'object',
|
||||
controlComponent,
|
||||
previewComponent,
|
||||
schema,
|
||||
...opts,
|
||||
});
|
||||
|
||||
|
5
packages/netlify-cms-widget-object/src/schema.js
Normal file
5
packages/netlify-cms-widget-object/src/schema.js
Normal file
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
properties: {
|
||||
collapsed: { type: 'boolean' },
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user