({ shape, error })
| 34 | .create({ |
| 35 | transformer: superjson, |
| 36 | errorFormatter({ shape, error }) { |
| 37 | return { |
| 38 | ...shape, |
| 39 | data: { |
| 40 | ...shape.data, |
| 41 | zodError: error.cause instanceof ZodError ? error.cause.flatten() : null, |
| 42 | }, |
| 43 | }; |
| 44 | }, |
| 45 | }); |
| 46 | |
| 47 | export const createOpenApiRouter = t.router; |
nothing calls this directly
no outgoing calls
no test coverage detected