mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-04 09:07:50 +00:00
debug log in getInvalidSchemaValues
This commit is contained in:
1 parent
4afaf84cd0
commit
3b2bff7e28
1 file changed
+3
-1
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user