From 24af2d434b20b91e469f7d22158837a7252fe3c5 Mon Sep 17 00:00:00 2001 From: Jason <37859597+zachowj@users.noreply.github.com> Date: Thu, 24 Oct 2019 13:15:51 -0700 Subject: [PATCH] fix: fix JOI validate format --- lib/base-node.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/base-node.js b/lib/base-node.js index ae92479ccc..8e25abce90 100644 --- a/lib/base-node.js +++ b/lib/base-node.js @@ -486,9 +486,8 @@ const _internals = { // If validation for value is configured run validation, optionally throwing on failed validation if (fieldConfig.validation) { - const { error, value } = Joi.validate( + const { error, value } = fieldConfig.validation.schema.validate( result.value, - fieldConfig.validation.schema, { convert: true }