_e.g._ `?input=${JSON.stringify(encodeURIComponent(input))` |\r\n| `POST` | `.mutation()` | Input as post body. | \r\n\r\n## Considerations with OpenAPI\r\n\r\n- Resources are usually `/{resource}/{id}?param1=x¶m2=y`-style - tRPC is [currently] with `{resource}?input=JSON.stringify(encodeURIComponent(input))`-style\r\n- JSON-RPC based response shape might not be the ideal response shape for OpenAPI\r\n- An output schema usually have a `$ref`-schema which would be possible to do automatically / first feature people would request is to make different paths request the same input type\r\n- Actually using zod or any other validation on a resolver's `output` would slow down API outputs.\r\n\r\n## Related\r\n\r\nhttps://github.com/trpc/trpc/discussions/271\r\n",[3100,3102],{"name":3101,"color":3051},"🙋♂️ help wanted",{"name":3103,"color":3104},"💬 discussion","4B318A",755,"[RFC] Using tRPC for public-facing APIs (OpenAPI/Swagger/etc)","2022-06-19T00:48:45Z","https://github.com/trpc/trpc/issues/755",0.7029021,{"description":3111,"labels":3112,"number":3119,"owner":3020,"repository":3020,"state":3053,"title":3120,"updated_at":3121,"url":3122,"score":3123},"# Provide environment information\r\n\r\n``` \r\nSystem:\r\n OS: OSe 12.2.1\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 131.52 MB / 32.00 GB\r\n Shell: 3.2.57 - /bin/bash\r\n Binaries:\r\n Node: 18.8.0 - ~/agent.local/share/nvm/v18.8.0/bin/node\r\n Yarn: 1.22.19 - ~/.local/share/nvm/v18.8.0/bin/yarn\r\n npm: 8.18.0 - ~/agent.local/share/nvm/v18.8.0/bin/npm\r\n Browsers:\r\n Chrome: 106.0.5249.103\r\n Firefox: 105.0.2\r\n Safari: 15.3\r\n npmPackages:\r\n @trpc/issue: ^10.0.0-proxy-beta.17 => 10.0.0-proxy-beta.17\r\n```\r\n\r\n\r\n### Describe the bug\r\n\r\nTypescript can't complete the typing of a query, see discussion https://github.com/trpc/trpc/discussions/2963\r\n\r\n\r\n`Property 'subscribe' does not exist on type 'DecoratedProcedureRecord\u003Cunknown, BuildProcedure\u003C\"subscription\", { _config: RootConfig\u003C{ ctx: {}; meta: {}; errorShape: never; transformer: CombinedDataTransformer; }>; _ctx_out: {}; _input_in: unique symbol; _input_out: unique symbol; _output_in: u\r\n nique symbol; _output_out: unique symbol; _meta: {}; }, Observable\u003C....'.`\r\n\r\n# Link to reproduction\r\n\r\nhttps://github.com/Lilja/trpc-v10-server-needed\r\n\r\n## To reproduce\r\n\r\nOpen up `src/index.ts` and modify the `type {AppRouter}` import, point it to the trpc repo OR a another router.\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n> 👨👧👦 Contributing\r\n\r\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!\r\n\r\nPost_Originally posted by @Lilja in https://github.com/trpc/trpc/discussions/2973_",[3113,3116],{"name":3114,"color":3115},"👻 invalid","e4e669",{"name":3117,"color":3118},"⏮ needs reproduction","000055",5289,"## Provide environment information","2025-03-20T15:42:10Z","https://github.com/trpc/trpc/issues/5289",0.7100653,{"description":3125,"labels":3126,"number":3134,"owner":3020,"repository":3020,"state":3053,"title":3135,"updated_at":3136,"url":3137,"score":3138},"## Describe the feature you'd like to request\r\n\r\nWe have a lot of tests that are outdated and using v9. We should have them all in v10-structure.\r\n\r\nGood intro if you are curious about contributing to tRPC.\r\n\r\n## Describe the solution you'd like to see\r\n\r\n### Instructions\r\n\r\n- https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md\r\n- Rewrite all of https://github.com/trpc/trpc/tree/main/packages/tests/server/interop to a nice v10 equivalent (the v10 tests are in the folder above)\r\n- Some have equivalents already\r\n- They can be done one-by-one\r\n- Improvements on the general testing structure is also welcome\r\n\r\n#### Example\r\n\r\n1. Copy `/packages/tests/server/interop/outputParser.test.ts` -> `/packages/tests/server/outputParser.test.ts` \r\n1. Replace `legacyRouterToServerAndClient` with `routerToServerAndClientNew`\r\n1. Rewrite the routers using tRPC 10\r\n1. Rewrite the calls using tRPC 10\r\n\r\n### Get paid\r\n\r\n- We can pay $10-15 per test file rewritten if done well. $50 for bigger ones (like subscriptions and WebSockets).\r\n- Once you get into the flow, it might not take more than 5 minutes per test file.\r\n\r\n\r\n### Full tree\r\n\r\n```\r\n├── adapters\r\n│ ├── express.test.tsx\r\n│ ├── fastify.test.ts\r\n│ ├── fetch.test.ts\r\n│ └── next.test.ts\r\n├── clientInternals.test.ts\r\n├── dataloader.test.ts\r\n├── errors.test.ts\r\n├── headers.test.tsx\r\n├── index.test.tsx\r\n├── inference.test.ts\r\n├── links.test.ts\r\n├── middleware.test.ts\r\n├── outputParser.test.ts\r\n├── rawFetch.test.tsx\r\n├── react\r\n│ ├── __testHelpers.tsx\r\n│ ├── dehydrate.test.tsx\r\n│ ├── formatError.test.tsx\r\n│ ├── infiniteQuery.test.tsx\r\n│ ├── invalidateQueries.test.tsx\r\n│ ├── prefetchQuery.test.tsx\r\n│ ├── regression\r\n│ │ └── issue-1645-setErrorStatusSSR.test.tsx\r\n│ ├── setInfiniteQueryData.test.tsx\r\n│ ├── setQueryData.test.tsx\r\n│ ├── useMutation.test.tsx\r\n│ ├── useQuery.test.tsx\r\n│ ├── useSubscription.test.tsx\r\n│ └── withTRPC.test.tsx\r\n├── regression\r\n│ ├── issue-949-inferProcedureInput.test.ts\r\n│ └── issue-990-initialData.test.tsx\r\n├── responseMeta.test.ts\r\n├── router.test.ts\r\n├── routerMeta.test.ts\r\n├── transformer.test.ts\r\n├── validators.test.ts\r\n```\r\n",[3127,3130,3131],{"name":3128,"color":3129},"👉 good first issue","7057ff",{"name":3087,"color":3088},{"name":3132,"color":3133},"😌 QoL","6830B5",3229,"feat: port all tests from v9 to v10","2022-12-21T16:34:16Z","https://github.com/trpc/trpc/issues/3229",0.7132176,["Reactive",3140],{},["Set"],["ShallowReactive",3143],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fGOrMzyhtmKFIagSxpUqMed2U201Fg3iLG2775mVJrtQ":-1},"/trpc/trpc-openapi/91"]