We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 510c7ed commit 0781730Copy full SHA for 0781730
1 file changed
express-zod-api/src/json-schema-helpers.ts
@@ -9,7 +9,7 @@ const isJsonObjectSchema = (
9
const propsMerger = R.mergeDeepWith((a: unknown, b: unknown) => {
10
if (Array.isArray(a) && Array.isArray(b)) return R.concat(a, b);
11
if (a === b) return b;
12
- throw new Error("Can not flatten properties");
+ throw new Error("Can not flatten properties", { cause: { a, b } });
13
});
14
15
const canMerge = R.pipe(
0 commit comments