zod: Is it possible to use custom openapi attributes? #1804
Replies: 2 comments
-
@alexcupertme For that you can use https://www.kubb.dev/plugins/plugin-zod/#mapper
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@stijnvanhulle Thank you! This feature is really helpful. But can i rely specifically on the x-error-message property, not hard-coding the output? |
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.
-
I want to use custom openapi attributes to use them in zod schema to pass them as error messages to my schema, e.g.:
Turns into:
How to do that in general? Maybe kubb already had this feature with error messges?
Beta Was this translation helpful? Give feedback.
All reactions