fix: add minLength and maxLength to textarea field validations

This commit is contained in:
Elliot DeNolf
2021-01-16 21:23:26 -05:00
parent b57239e2e7
commit 2c98087c6f

View File

@@ -67,6 +67,8 @@ export const textarea = baseField.keys({
type: joi.string().valid('textarea').required(),
name: joi.string().required(),
defaultValue: joi.string(),
minLength: joi.number(),
maxLength: joi.number(),
});
export const email = baseField.keys({