Issue with Schema Transformation and Validation in TypeScript Code - Effect Community