Allow extra config options, simply ignore them
This commit is contained in:
parent
3112acff9b
commit
290d708b12
@ -119,7 +119,6 @@ const viewFilters = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
required: ['label', 'field', 'pattern'],
|
required: ['label', 'field', 'pattern'],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -134,7 +133,6 @@ const viewGroups = {
|
|||||||
field: { type: 'string' },
|
field: { type: 'string' },
|
||||||
pattern: { type: 'string' },
|
pattern: { type: 'string' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
required: ['label', 'field'],
|
required: ['label', 'field'],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -183,11 +181,9 @@ function getConfigSchema() {
|
|||||||
uploadMedia: { type: 'string' },
|
uploadMedia: { type: 'string' },
|
||||||
deleteMedia: { type: 'string' },
|
deleteMedia: { type: 'string' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: ['name'],
|
required: ['name'],
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
collections: {
|
collections: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
@ -213,7 +209,6 @@ function getConfigSchema() {
|
|||||||
field: { type: 'string' },
|
field: { type: 'string' },
|
||||||
},
|
},
|
||||||
required: ['value', 'field'],
|
required: ['value', 'field'],
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
label_singular: { type: 'string' },
|
label_singular: { type: 'string' },
|
||||||
label: { type: 'string' },
|
label: { type: 'string' },
|
||||||
@ -231,7 +226,6 @@ function getConfigSchema() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: ['field'],
|
required: ['field'],
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
fields: {
|
fields: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
@ -241,7 +235,6 @@ function getConfigSchema() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: ['fields'],
|
required: ['fields'],
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
view_filters: viewFilters,
|
view_filters: viewFilters,
|
||||||
view_groups: viewGroups,
|
view_groups: viewGroups,
|
||||||
@ -253,7 +246,6 @@ function getConfigSchema() {
|
|||||||
preview: { type: 'boolean' },
|
preview: { type: 'boolean' },
|
||||||
frame: { type: 'boolean' },
|
frame: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
identifier_field: { type: 'string' },
|
identifier_field: { type: 'string' },
|
||||||
path: { type: 'string' },
|
path: { type: 'string' },
|
||||||
@ -276,7 +268,6 @@ function getConfigSchema() {
|
|||||||
max_file_size: { type: 'number' },
|
max_file_size: { type: 'number' },
|
||||||
folder_support: { type: 'boolean' },
|
folder_support: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
folder: { type: 'string' },
|
folder: { type: 'string' },
|
||||||
fields: fieldsConfig(),
|
fields: fieldsConfig(),
|
||||||
@ -294,11 +285,9 @@ function getConfigSchema() {
|
|||||||
index_file: { type: 'string' },
|
index_file: { type: 'string' },
|
||||||
},
|
},
|
||||||
required: ['index_file'],
|
required: ['index_file'],
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: ['depth'],
|
required: ['depth'],
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
@ -320,7 +309,6 @@ function getConfigSchema() {
|
|||||||
max_file_size: { type: 'number' },
|
max_file_size: { type: 'number' },
|
||||||
folder_support: { type: 'boolean' },
|
folder_support: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
i18n: i18nCollection,
|
i18n: i18nCollection,
|
||||||
editor: {
|
editor: {
|
||||||
@ -329,11 +317,9 @@ function getConfigSchema() {
|
|||||||
preview: { type: 'boolean' },
|
preview: { type: 'boolean' },
|
||||||
frame: { type: 'boolean' },
|
frame: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: ['name', 'label', 'file', 'fields'],
|
required: ['name', 'label', 'file', 'fields'],
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
uniqueItemProperties: ['name'],
|
uniqueItemProperties: ['name'],
|
||||||
},
|
},
|
||||||
@ -376,7 +362,6 @@ function getConfigSchema() {
|
|||||||
max_file_size: { type: 'number' },
|
max_file_size: { type: 'number' },
|
||||||
folder_support: { type: 'boolean' },
|
folder_support: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
load_config_file: { type: 'boolean' },
|
load_config_file: { type: 'boolean' },
|
||||||
slug: {
|
slug: {
|
||||||
@ -386,7 +371,6 @@ function getConfigSchema() {
|
|||||||
clean_accents: { type: 'boolean' },
|
clean_accents: { type: 'boolean' },
|
||||||
sanitize_replacement: { type: 'string' },
|
sanitize_replacement: { type: 'string' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
i18n: i18nRoot,
|
i18n: i18nRoot,
|
||||||
local_backend: {
|
local_backend: {
|
||||||
@ -401,7 +385,6 @@ function getConfigSchema() {
|
|||||||
items: { type: 'string' },
|
items: { type: 'string' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@ -411,12 +394,10 @@ function getConfigSchema() {
|
|||||||
preview: { type: 'boolean' },
|
preview: { type: 'boolean' },
|
||||||
frame: { type: 'boolean' },
|
frame: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
search: { type: 'string' },
|
search: { type: 'string' },
|
||||||
},
|
},
|
||||||
required: ['backend', 'collections', 'media_folder'],
|
required: ['backend', 'collections', 'media_folder'],
|
||||||
additionalProperties: false,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ export default {
|
|||||||
max_file_size: { type: 'number' },
|
max_file_size: { type: 'number' },
|
||||||
folder_support: { type: 'boolean' },
|
folder_support: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -22,7 +22,6 @@ export default {
|
|||||||
max_file_size: { type: 'number' },
|
max_file_size: { type: 'number' },
|
||||||
folder_support: { type: 'boolean' },
|
folder_support: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -11,7 +11,6 @@ export default {
|
|||||||
max_file_size: { type: 'number' },
|
max_file_size: { type: 'number' },
|
||||||
folder_support: { type: 'boolean' },
|
folder_support: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
additionalProperties: false,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user