fix: #2821 i18n ui field label (#2823)

This commit is contained in:
Dan Ribbens
2023-06-14 08:39:45 -04:00
committed by GitHub
parent 346a48f871
commit 63cd7fbd0c
2 changed files with 5 additions and 2 deletions

View File

@@ -455,7 +455,10 @@ export const date = baseField.keys({
export const ui = joi.object().keys({
name: joi.string().required(),
label: joi.string(),
label: joi.alternatives().try(
joi.string(),
joi.object().pattern(joi.string(), [joi.string()]),
),
type: joi.string().valid('ui').required(),
admin: joi.object().keys({
position: joi.string().valid('sidebar'),