Skip to content

Commit

Permalink
//issues/7102 publish mode allow empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
hip3r committed Feb 22, 2024
1 parent 3715ca7 commit 4c91868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/decap-cms-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion packages/decap-cms-core/src/constants/configSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function getConfigSchema() {
},
publish_mode: {
type: 'string',
enum: ['simple', 'editorial_workflow'],
enum: ['simple', 'editorial_workflow', ''],
examples: ['editorial_workflow'],
},
slug: {
Expand Down

0 comments on commit 4c91868

Please sign in to comment.