debug log in getInvalidSchemaValues

This commit is contained in:
Rory& committed 2026-10-16 07:27:17 +02:00
1 parent 4afaf84cd0
commit 3b2bff7e28
1 file changed
+3 -1
+3 -1
View File
@@ -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);
});
}