Replies: 3 comments
-
|
This would be a great feature. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I have added support for this in #3518. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This looks to now be supported in the new |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're open to PR'ing this in but before we do I'm curious if there's interest in a
.example()method that like.describe()adds anexampleproperty into theZodTypeDefinterface so that tooling likezod-to-json-schemacould generate JSON Schema representations with examples.For example:
Beta Was this translation helpful? Give feedback.
All reactions