fix!: meta.icons type and schema validation (#6759)

This commit is contained in:
Jacob Fletcher
2024-06-13 09:36:30 -04:00
committed by GitHub
parent 019677b7e6
commit 8e56328e63
2 changed files with 12 additions and 10 deletions

View File

@@ -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(),
}),

View File

@@ -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"`