kubb icon indicating copy to clipboard operation
kubb copied to clipboard

code usage is missing

Open fredericrous opened this issue 10 months ago • 2 comments

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

fredericrous avatar Mar 31 '24 14:03 fredericrous

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

stijnvanhulle avatar Apr 01 '24 17:04 stijnvanhulle

Zod schema transformations per schema fields

stijnvanhulle avatar May 13 '24 19:05 stijnvanhulle