fix!: meta.icons type and schema validation (#6759)
This commit is contained in:
@@ -69,15 +69,17 @@ export default joi.object({
|
||||
meta: joi.object().keys({
|
||||
defaultOGImageType: joi.string().valid('off', 'dynamic', 'static'),
|
||||
description: joi.string(),
|
||||
icons: joi.object().keys({
|
||||
type: joi.string(),
|
||||
color: joi.string(),
|
||||
fetchPriority: joi.string().valid('auto', 'high', 'low'),
|
||||
media: joi.string(),
|
||||
rel: joi.string(),
|
||||
sizes: joi.string(),
|
||||
url: joi.string(),
|
||||
}),
|
||||
icons: joi.array().items(
|
||||
joi.object().keys({
|
||||
type: joi.string(),
|
||||
color: joi.string(),
|
||||
fetchPriority: joi.string().valid('auto', 'high', 'low'),
|
||||
media: joi.string(),
|
||||
rel: joi.string(),
|
||||
sizes: joi.string(),
|
||||
url: joi.string(),
|
||||
}),
|
||||
),
|
||||
openGraph: openGraphSchema,
|
||||
titleSuffix: joi.string(),
|
||||
}),
|
||||
|
||||
@@ -120,7 +120,7 @@ export type MetaConfig = {
|
||||
*
|
||||
* For example browser tabs, phone home screens, and search engine results.
|
||||
*/
|
||||
icons?: IconConfig
|
||||
icons?: IconConfig[]
|
||||
/**
|
||||
* Overrides the auto-generated <meta name="keywords"> of admin pages
|
||||
* @example `"CMS, Payload, Custom"`
|
||||
|
||||
Reference in New Issue
Block a user