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 7f27343 commit a767745Copy full SHA for a767745
packages/restate-sdk-zod/src/serde_api.ts
@@ -37,7 +37,9 @@ class ZodSerde<T extends z3.ZodTypeAny | z4.$ZodType>
37
38
constructor(private readonly schema: T) {
39
if ("_zod" in schema) {
40
- this.jsonSchema = z4.toJSONSchema(schema);
+ this.jsonSchema = z4.toJSONSchema(schema, {
41
+ unrepresentable: "any",
42
+ });
43
} else if (schema instanceof z3.ZodType) {
44
printZod3Warning();
45
this.jsonSchema = undefined;
0 commit comments