You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the conversation, _kedi and spaethnl are discussing an issue with the S.omit method from the Effect Typescript library, where it doesn't remove fields as expected from a schema. _kedi provides examples indicating that S.omit does not work after using a filter or even in a simple schema transformation.
Spaethnl suggests that when S.omit is used after a filter operation, it fails to work, and recommends moving S.omit before the filter as a workaround. _kedi, however, points out that S.omit also fails in a scenario without a filter.
Gcanti acknowledges a bug with the filtering process and demonstrates it with an example, showing that after applying a filter, the S.omit operation does not properly remove fields.
Key Takeaways:
There appears to be a bug in the Effect Typescript library where S.omit does not work correctly when used after a filter operation.
The issue seems to affect operations even without filtering, as noted by _kedi.
The issue should ideally be either fixed to work in all scenarios or should be restricted by type-checking to prevent unexpected behavior.
Gcanti confirms the potential bug with an example, showing that S.omit results in an empty list of property signatures after being applied following a filter.
Summary
In the conversation, _kedi and spaethnl are discussing an issue with the
S.omit
method from the Effect Typescript library, where it doesn't remove fields as expected from a schema. _kedi provides examples indicating thatS.omit
does not work after using a filter or even in a simple schema transformation.Spaethnl suggests that when
S.omit
is used after a filter operation, it fails to work, and recommends movingS.omit
before the filter as a workaround. _kedi, however, points out thatS.omit
also fails in a scenario without a filter.Gcanti acknowledges a bug with the filtering process and demonstrates it with an example, showing that after applying a filter, the
S.omit
operation does not properly remove fields.Key Takeaways:
S.omit
does not work correctly when used after a filter operation.S.omit
results in an empty list of property signatures after being applied following a filter.Discord thread
https://discord.com/channels/795981131316985866/1349848817217830993
The text was updated successfully, but these errors were encountered: