adds default value to block field schema validation

This commit is contained in:
James
2020-12-27 13:06:53 -05:00
parent b6d2c95ee7
commit b4fd2b1976
3 changed files with 10 additions and 275 deletions

View File

@@ -175,6 +175,7 @@ export const blocks = baseField.keys({
fields: joi.array().items(joi.link('#field')),
}),
),
defaultValue: joi.array().items(joi.object()),
});
export const richText = baseField.keys({