fix(netlify-cms-core): allow arrays for frontmatter_delimiter in config (#1997)

This commit is contained in:
Daniel Eden 2019-02-02 17:01:32 -08:00 committed by Shawn Erquhart
parent 5d8aef1d94
commit ebba686430

View File

@ -96,7 +96,14 @@ const getConfigSchema = () => ({
},
format: { type: 'string', enum: Object.keys(formatExtensions) },
extension: { type: 'string' },
frontmatter_delimiter: { type: 'string' },
frontmatter_delimiter: {
type: ['string', 'array'],
minItems: 2,
maxItems: 2,
items: {
type: 'string',
},
},
fields: fieldsConfig,
},
required: ['name', 'label'],