Hello 👋
It seems like currently intended way is that schema is used for validating, but isn't impacting parsed return values:
|
// Return the original update data, not the merged data |
|
// We only used the merged data for validation |
|
return data as T |
Is it set in stone? That limits a lot of usages for schemas, I'd love to see it work.
If it's not possible, is it feasible to make it work on a type level? Currently it just silently works and user won't know he has invalid types.