Schema Decoding vs Class Constructor Validation in Effect-TS
When using a class constructor as a validator (https://github.com/Effect-TS/effect/blob/main/packages/schema/README.md#class-constructor-as-a-validator), what does Schema do under the hood in order to decode the input? In the example below, using
new Person() throws an error when the name property includes whitespace whereas calling Schema.decodeUnknownSync properly trims the whitespace as expected. 