strapi-plugin-publisher
Version:
A plugin for Strapi Headless CMS that provides the ability to schedule publishing for any content type.
29 lines (25 loc) • 513 B
JavaScript
'use strict';
const yup = require('yup');
const pluginConfigSchema = yup.object().shape({
actions: yup
.object()
.shape({
syncFrequency: yup.string().optional(),
})
.optional(),
hooks: yup.object().optional(),
components: yup
.object({
dateTimePicker: yup
.object({
step: yup.number().optional(),
locale: yup.string().optional(),
})
.optional(),
})
.optional(),
contentTypes: yup.array().of(yup.string()).optional(),
});
module.exports = {
pluginConfigSchema,
};