From 08a86c5b9eb59a66d2a15eb5511bebefa7a3c836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cemalettin=20Ta=C5=9F?= Date: Sun, 13 Dec 2020 22:14:15 +0300 Subject: [PATCH] fix(schema): Don't initialize spec values with undefined (jquense/yup#1160) Concatting schemas can overwrite previous non-undefined values with undefined --- src/schema.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/schema.ts b/src/schema.ts index 7ffaccd91..d80d1d841 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -137,8 +137,6 @@ export default abstract class BaseSchema< strict: false, abortEarly: true, recursive: true, - label: undefined, - meta: undefined, nullable: false, presence: 'optional', ...options?.spec,