sanitizing output based on output schema - tRPC