kubb
kubb copied to clipboard
code usage is missing
What is the type of issue?
Documentation is missing, Documentation is confusing
What is the issue?
the documentation stops once you generated your client library. same for the examples
how about showing a basic example of usage of the generated code at least on the quick start page?
Where did you find it?
No response
thank you @stijnvanhulle , I will try using swagger-client
regarding the examples, I can think of 3 use cases that would occur often and benefit from end to end examples:
use a third party backend from another backend with a client generated with TS & Zod.. my current use case
call a backend I own from another backend with a client generated with just TS
call a backend I own from a frontend client generated using the react-query generator
I bet there are other use cases, I've seen kubb has support for mswjs and faker. I'm not there yet in my project...not doing much automated testing at this stage 🤣
PS: it would also be great to get in these 3 examples how to authenticate with a bearer token
Zod schema transformations per schema fields