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 4504582 commit 1dd0546Copy full SHA for 1dd0546
1 file changed
express-zod-api/src/metadata.ts
@@ -1,6 +1,5 @@
1
import { globalRegistry } from "zod/v4";
2
import type { $ZodType } from "zod/v4/core";
3
-import { isObject } from "./common-helpers";
4
5
export const metaSymbol = Symbol.for("express-zod-api");
6
@@ -27,9 +26,7 @@ export const getExamples = (subject: $ZodType): ReadonlyArray<unknown> => {
27
26
return Array.isArray(examples)
28
? examples
29
: /** @todo remove this branch in v25 */
30
- Object.values(examples)
31
- .filter((one) => isObject(one) && "value" in one)
32
- .map(({ value }) => value);
+ Object.values(examples).map(({ value }) => value);
33
}
34
/** @todo remove this in v25 */
35
return example === undefined ? [] : [example];
0 commit comments