TypeScript Schema Decoding: Incorrect Type Masks Other Errors
Hello,
I found something interesting. I don't know if it can be considered a bug, or if it can only work this way.
When decoding a Schema, if a wrongly typed property is passed as parameter, typescript will only flag the wrognly typed property error and ignore other things such as missing properties, or extra properties passed.
For instance, given this schema:
Which to me is problematic because if you have :
then no error is flagged at all even though there's an exta property + a missing one.
I found something interesting. I don't know if it can be considered a bug, or if it can only work this way.
When decoding a Schema, if a wrongly typed property is passed as parameter, typescript will only flag the wrognly typed property error and ignore other things such as missing properties, or extra properties passed.
For instance, given this schema:
Which to me is problematic because if you have :
then no error is flagged at all even though there's an exta property + a missing one.
