Skip to content

Zod schema to define structure and not just to validate #1947

Answered by lgrammel
defless asked this question in Help
Discussion options

You must be logged in to vote

I would need to look at the details of how this is translated into a json schema by zod-to-json-schema. I know that for enums it can be tricky. We don't modify further on purpose to give you control through describe.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@defless
Comment options

@lgrammel
Comment options

Answer selected by defless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants