How to get meta from a refinement? #5337
Unanswered
beratbayram
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hi @beratbayram! I'm Dosu and I’m helping the zod team. You can get the meta value from your schema instance by calling If you have any follow-up questions, feel free to ask! If this solves your issue, please close the thread. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
const mySchema = zod.meta({ "test": 123}).refine(...)
How can I get "test" from mySchema above?
Note: I can't touch the schema definition. All I have is mySchema variable.
Beta Was this translation helpful? Give feedback.
All reactions