diff --git a/packages/decap-cms-core/index.d.ts b/packages/decap-cms-core/index.d.ts index 2fcd45aa83c4..edb8748a73d2 100644 --- a/packages/decap-cms-core/index.d.ts +++ b/packages/decap-cms-core/index.d.ts @@ -41,7 +41,7 @@ declare module 'decap-cms-core' { export type CmsAuthScope = 'repo' | 'public_repo'; - export type CmsPublishMode = 'simple' | 'editorial_workflow'; + export type CmsPublishMode = 'simple' | 'editorial_workflow' | ''; export type CmsSlugEncoding = 'unicode' | 'ascii'; diff --git a/packages/decap-cms-core/src/constants/configSchema.js b/packages/decap-cms-core/src/constants/configSchema.js index d3f6de491aab..5efd2cd4c172 100644 --- a/packages/decap-cms-core/src/constants/configSchema.js +++ b/packages/decap-cms-core/src/constants/configSchema.js @@ -175,7 +175,7 @@ function getConfigSchema() { }, publish_mode: { type: 'string', - enum: ['simple', 'editorial_workflow'], + enum: ['simple', 'editorial_workflow', ''], examples: ['editorial_workflow'], }, slug: {