Skip to content

Conversation

@slinkydeveloper
Copy link
Collaborator

No description provided.

Copy link
Contributor

@nikrooz nikrooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm.

Maybe we can also add

https://zod.dev/json-schema?id=override


override: (ctx) => {
    const def = ctx.zodSchema._zod.def;
    if (def.type === "date") {
      ctx.jsonSchema.type = "string";
      ctx.jsonSchema.format = "date-time";
    }
  },

@slinkydeveloper
Copy link
Collaborator Author

I prefer to skip that for now. this might be subject to user opinions. at a later point in time i think we should jsut let people provide their options to create json schemas.

@slinkydeveloper slinkydeveloper merged commit a767745 into restatedev:main Oct 27, 2025
8 checks passed
@slinkydeveloper slinkydeveloper deleted the issues/zod branch October 27, 2025 10:10
slinkydeveloper added a commit to slinkydeveloper/sdk-typescript that referenced this pull request Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants