({ shape, error })
| 72 | .create({ |
| 73 | transformer: superjson, |
| 74 | errorFormatter({ shape, error }) { |
| 75 | return { |
| 76 | ...shape, |
| 77 | data: { |
| 78 | ...shape.data, |
| 79 | zodError: error.cause instanceof ZodError ? error.cause.flatten() : null, |
| 80 | }, |
| 81 | }; |
| 82 | }, |
| 83 | }); |
| 84 | |
| 85 | export const createOpenApiRouter = t.router; |
nothing calls this directly
no outgoing calls
no test coverage detected