jlalmes / trpc-openapi

OpenAPI support for tRPC 🧩
https://www.npmjs.com/package/trpc-openapi
MIT License
2.18k stars 147 forks source link

Any plans to seek a new maintainer? #451

Open musjj opened 3 months ago

musjj commented 3 months ago

It looks like a year has passed since the last commit and @jlalmes is now focusing on other things according to the bio in his profile.

Are there any plans to pass down the project to a new maintainer? I'm really thankful for this project, but it's really a shame to see it slowly becoming incompatible with the ecosystem:

For now I'm making do by using:

I haven't tested them extensively, but they do work decently on my small projects.

KiranMantha commented 3 months ago

@musjj , add this one as well. Unable to generate openapi contract json due to updations on how a procedure definition is generated by latest @trpc/server (right now i'm using 11-rc version)

kdy1 commented 2 months ago

@jlalmes Do you have time to review/merge PRs? If not, can I do it instead?

As a side note, I'm the creator of the SWC project and maintainer of next.js/turbopack, although I'll not use working hours for this.

kdy1 commented 2 months ago

I forked it for now.

https://github.com/kdy1/trpc-openapi

npm package: better-trpc-openapi

bompi88 commented 1 month ago

Also a popup package here: https://github.com/vercjames/package-trpc-swagger

bompi88 commented 1 month ago

@kdy1 I'm getting the following error when errors are thrown or malformed JSON is posted to one of the endpoints:

TypeError: router._def.getErrorShape is not a function
    at ~/whatever/node_modules/.pnpm/better-trpc-openapi@0.1.0_@trpc+server@11.0.0-rc.477_zod@3.23.8/node_modules/better-trpc-openapi/src/adapters/node-http/core.ts:168:38
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ~/whatever/node_modules/.pnpm/better-trpc-openapi@0.1.0_@trpc+server@11.0.0-rc.477_zod@3.23.8/node_modules/better-trpc-openapi/src/adapters/express.ts:18:5

Have you encountered this TypeError before and if so, what am I doing wrong here?

Westernwells commented 1 month ago

@kdy1 I'm getting the following error when errors are thrown or malformed JSON is posted to one of the endpoints:

TypeError: router._def.getErrorShape is not a function
    at ~/whatever/node_modules/.pnpm/better-trpc-openapi@0.1.0_@trpc+server@11.0.0-rc.477_zod@3.23.8/node_modules/better-trpc-openapi/src/adapters/node-http/core.ts:168:38
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ~/whatever/node_modules/.pnpm/better-trpc-openapi@0.1.0_@trpc+server@11.0.0-rc.477_zod@3.23.8/node_modules/better-trpc-openapi/src/adapters/express.ts:18:5

Have you encountered this TypeError before and if so, what am I doing wrong here?

Encountering this same issue right now

tristanz commented 1 month ago

@kdy1 are you still interested in this? @jlalmes do you have any thoughts? I've love if we could organize a group of folks to maintain this actively. Maybe we could do a brief huddle with 1-3 folks who are using this project in production and try to get a fork properly maintained.

kdy1 commented 3 weeks ago

@tristanz Yes, I don't actively use my fork at the moment, but I'll need to expose my APIs in my private project in a near future.

mcampa commented 3 weeks ago

I have a fork that works with tRPC 11 https://www.npmjs.com/package/trpc-to-openapi

it's been running fine with t3-app/NextJS. However, I don't use other adapters, I fixed all tests cases for everything so in theory they should work. The only thing I couldn't port was the serverless adapter, the trpc implementation changed too much.

This is a fork of another fork (https://github.com/LilyRose2798/trpc-openapi) which uses zod-openapi instead of zod-to-json-schema and some other fixes.

PR are welcomed