diff --git a/src/schemas/Validator.ts b/src/schemas/Validator.ts index ec9b78dad..81132ca0c 100644 --- a/src/schemas/Validator.ts +++ b/src/schemas/Validator.ts @@ -73,7 +73,9 @@ export function getInvalidSchemaValues(data: object, errors: typeof ajv.errors) if (errors == null) return []; return errors.map((e) => { let instancePath = e.instancePath; - if (e.keyword === "additionalProperties") instancePath += `/${e.params.additionalProperty}`; + if (e.keyword == "additionalProperties") instancePath += `/${e.params.additionalProperty}`; + + console.log("Resolving:", { instancePath, eInstancePath: e.instancePath, eKeyword: e.keyword, eParams: e.params }); return getInvalidSchemaValue(data, instancePath); }); }