From 30dbc4d8b5eff7dc27d323e433b6b3384173ba91 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Fri, 17 May 2024 03:41:58 -0700 Subject: [PATCH] log --- src/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4f01e60..792dfdb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -130,9 +130,7 @@ export class JSONSchemaPatch { private removeRequiredFromProperty(path: string, propertyName: string): void { path = path.trim() === '/' ? '' : path; const requiredPath = `${path}/required`; - // const requiredIndex = this.schema[requiredPath]?.indexOf(propertyName); const requiredIndex = getValueAtPath(this.schema, requiredPath)?.indexOf(propertyName); - console.log(requiredIndex, requiredPath) if (requiredIndex > -1) { applyPatch(this.schema, [{ op: 'remove', path: `${requiredPath}/${requiredIndex}` }]); }