We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2fdbe7 commit 9576f20Copy full SHA for 9576f20
1 file changed
packages/core/src/util/standardSchema.ts
@@ -139,9 +139,10 @@ export function isStandardSchemaWithJSON(schema: unknown): schema is StandardSch
139
}
140
141
/**
142
- * Detects a "raw shape" — a plain object whose values are Zod (or other
143
- * Standard Schema) field schemas, e.g. `{ name: z.string() }`. Powers the
144
- * auto-wrap in {@linkcode normalizeRawShapeSchema}.
+ * Detects a "raw shape" — a plain object whose values are Zod field schemas,
+ * e.g. `{ name: z.string() }`. Powers the auto-wrap in
+ * {@linkcode normalizeRawShapeSchema}, which wraps with `z.object()`, so only
145
+ * Zod values are supported even though the predicate accepts any Standard Schema.
146
*
147
* @internal
148
*/
0 commit comments