Removed check for changeMessage as per issue topic #15

This commit is contained in:
Alexander Cerutti
2019-04-10 22:49:44 +02:00
parent fd5efded11
commit 7bad481070

View File

@@ -39,7 +39,7 @@ let barcode = Joi.object().keys({
let field = Joi.object().keys({
attributedValue: Joi.alternatives(Joi.string().allow(""), Joi.number(), Joi.date().iso()),
changeMessage: Joi.string().allow("").regex(/%@/),
changeMessage: Joi.string(),
dataDetectorType: Joi.array().items(Joi.string().regex(/(PKDataDetectorTypePhoneNumber|PKDataDetectorTypeLink|PKDataDetectorTypeAddress|PKDataDetectorTypeCalendarEvent)/, "dataDetectorType")),
label: Joi.string().allow(""),
textAlignment: Joi.string().regex(/(PKTextAlignmentLeft|PKTextAlignmentCenter|PKTextAlignmentRight|PKTextAlignmentNatural)/, "graphic-alignment"),