Replies: 2 comments
-
|
@xeoneux Right now we don't have support for overriding specific schema's. Is this something that could be changed before passing it to Kubb or should Kubb handle those cases (this will add some complexity to Kubb)? |
Beta Was this translation helpful? Give feedback.
-
|
If we change it before passing it to kubb, it will only be in the openapi format and zod schemas won't tie up perfectly with sub parts of the schema. Zod schemas are more expressive so I was thinking if there is a way (maybe using generators and also letting kubb know) to generate zod schemas with custom schemas injected inside |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in a scenario where the backend sends us an OpenAPI spec which generates a very generic type that can be narrowed down on the frontend.
For example:
We have a frontend schema written in Zod like
I was wondering what's the best way to extend this type "before" the generation of types so that we have this as the final output
Now, we also have some zod validations which we would like to use for types instead of the generated types
My questions here are:
instead of just
string?Beta Was this translation helpful? Give feedback.
All reactions