-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubb v3 ideas #1115
Comments
On your note of
In a similar vein, I strongly feel that the use of "swagger" anywhere should be vaulted and replaced with openapi. I know it seems small, but seeing swagger used instead of openapi gives off a strong "stuck in the past" vibe, for an otherwise such modern and forward thinking library. |
react-form-hook? |
@stijnvanhulle Will it be possible to set the basePath for the client dynamically in v3? Would be a dealbreaker if you could set the basePath at runtime, not at generation. |
@joakimstrandell Today(in v2 and v3) you can use |
@stijnvanhulle I mean that I would like to set the path in the client during runtime, for example using some type of custom config. If I would use the server index I need to select the path when generating the client, if I understand the documentation correctly. For example in hey-api you can set the base url like this: import { client } from 'api';
import { config } from 'data' // custom
client.setConfig({
baseUrl: config.api.basePath,
headers: {
Authorization: '...',
'X-Csrftoken': '...',
},
}); |
@joakimstrandell I updated the default
|
Transform snake_case to camelCase in generated code. Transform camelCase to snake_case before request |
@RabbitShare For that I suggest using https://github.com/thim81/openapi-format |
I cannot find any resource (issue, discussion) on why |
@CHE1RON
And having the following barrel file:
This will throw some errors in TypeScript( |
Completing the migration guide before the v3 release: https://v3.kubb.dev/migration-guide. No additional features planned, only bug fixes until the release of v3. |
I am already thinking about the next version of Kubb and what should be done to make it better:
@kubb/plugin-ts
instead of@kubb/swagger-ts
@kubb/swagger-tanstack-query
and use separate packages per framework(react, vite, solid, svelte) #1152plugin.ts
files to be cleaner and easier to work with #1153transform
,resolveId
andwriteFile
output.exportType
to customize root barrel generationouput
options as part of every Kubb pluginasPascalConst
marked as deprecateddirectory-tree
(in memory generation of barrel files) #1154barrelNamed
as default instead ofbarrel
@kubb/react
to the react-devtools to easily debug changes when generating files(next to having logs) #1149@kubb/plugin-client
#1189mutationKeys
foruseMutation
hooks #1102queryKey
andmutationKey
for the SWR plugin #1248tag
useQuery
generationhttps://rollupjs.org/plugin-development/#banner
https://unplugin.unjs.io/guide
https://coolify.io/docs/knowledge-base/faq
The text was updated successfully, but these errors were encountered: