Conversation
🦋 Changeset detectedLatest commit: 0c77396 The changes in this PR will be included in the next version bump. This PR includes changesets to release 21 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
More templates
@kubb/cli
@kubb/core
kubb
@kubb/mcp
@kubb/oas
@kubb/plugin-client
@kubb/plugin-cypress
@kubb/plugin-faker
@kubb/plugin-mcp
@kubb/plugin-msw
@kubb/plugin-oas
@kubb/plugin-orpc
@kubb/plugin-react-query
@kubb/plugin-redoc
@kubb/plugin-solid-query
@kubb/plugin-svelte-query
@kubb/plugin-swr
@kubb/plugin-ts
@kubb/plugin-vue-query
@kubb/plugin-zod
unplugin-kubb
commit: |
|
hello @hyoban thanks for the great plugin i really liked it
i just have a request (if it's fine with you), can you make the extention make something like a subrouter based on the tags?
sorry i didn't know it was already implemented i didn't see it on the example of the changed files inside the PR |
| "@kubb/plugin-zod": "workspace:*", | ||
| "@kubb/react-fabric": "catalog:" | ||
| }, | ||
| "devDependencies": { |
There was a problem hiding this comment.
We need peer dependency for @kubb/react-fabric here lik we have for other plugins
| * Name of the exported router object. | ||
| * @default 'router' | ||
| */ | ||
| routerName?: string |
There was a problem hiding this comment.
Will this mean only one router is possible per openapi file? That is not per router/definitionId?
|
We will also need some docs so new users can understand what the orpc plugin is about. Also have not yet used Orpc so not 100% sure if everything will work fine. I will try the examples to see what it is about. Thanks for the request and the implementation of this new plugin, approach this a lot! |
|
Thank you very much for your review. There are still some shortcomings in this PR, and I am happy to fix them and add documentation. |
|
@hyoban thanks, let me know if you need any help here. Also we did some changes so best to pull main and do another pnpm i to continue. |
🎯 Changes
oRPC features a Contract-first mode that allows contracts to be defined in advance that comply with the OpenAPI specification, followed by separate implementations for the frontend and backend.
In this PR, we have introduced the oRPC plugin to generate oRPC Contracts from OpenAPI. This is useful for projects that do not use TypeScript with an oRPC backend.
If you don't want to introduce this plugin, please feel free to close this PR.
To pass the CI, we will need #2368.
✅ Checklist
pnpm run test.🚀 Release Impact