First of all thanks for creating this, it's removed alot of difficult convo's when moving to trpc first api.
Now for the bug.
I have a path param that that is url encoded but when i try and pass it into my openAPI route it treats both parts of the param (either side of the encoded slack) as different path params.
this will error if called with an id of 'hello%2Fworld'
export const test = trpc.procedure .meta({ openapi: { method: 'GET', path: '/test/{id}' } }) .input( z.object({ id: z.string(), }), ) .output(z.string()) .query(async ({ input }) => { return input.id; });
First of all thanks for creating this, it's removed alot of difficult convo's when moving to trpc first api.
Now for the bug. I have a path param that that is url encoded but when i try and pass it into my openAPI route it treats both parts of the param (either side of the encoded slack) as different path params.
this will error if called with an id of 'hello%2Fworld'
export const test = trpc.procedure .meta({ openapi: { method: 'GET', path: '/test/{id}' } }) .input( z.object({ id: z.string(), }), ) .output(z.string()) .query(async ({ input }) => { return input.id; });