Add Effect v4 schema and HttpApiClient plugins - #696
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
1 similar comment
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
🦋 Changeset detectedLatest commit: 7463a12 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
|
@nmnmcc Thanks for having a look at adding Effect support in Kubb. We are preparing for Kubb v5 which means I will postpone this after the v5 release (planned in a couple of weeks). Could you also create a Github issue in why you think this would be a good fit for adding to Kubb so other users know that this is coming soon :) |
|
Thanks for the context. Waiting until after Kubb v5 works for me. I opened #706 to explain the motivation and proposed plugin split for Effect support. I'll keep this PR as a draft and rebase and update the implementation once v5 is released. |
🎯 Changes
@kubb/plugin-effectfor generating Effect v4 beta schemas from OpenAPI modelsDateTime.Utcand JSONint64values with a number-to-bigint codec@kubb/plugin-effect-httpapiclientfor generating typedHttpApi, endpoint groups, clients, parameter serialization, cookies, and security layersint64codecs, default responses, and security middlewareThe two plugins are kept separate so schema generation can be used independently while the HttpApiClient plugin composes the generated Effect schemas into an Effect HTTP API client.
Related documentation Draft PR: kubb-labs/docs#145
✅ Checklist
pnpm run test.Additional verification:
pnpm --filter @kubb/plugin-effect testpnpm --filter @kubb/plugin-effect typecheckpnpm --filter @kubb/plugin-effect buildpnpm --filter @kubb/plugin-effect-httpapiclient testpnpm --filter @kubb/plugin-effect-httpapiclient typecheckpnpm --filter @kubb/plugin-effect-httpapiclient buildpnpm formatpnpm lint:fix🚀 Release Impact
This PR is intentionally a draft pending maintainer review.