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
I don't think it will be possible or it would add indirection in the code as the user would need to use a DUs to represents the different cases.
The text was updated successfully, but these errors were encountered:
MangelMaxime
changed the title
[BREAKING CHANGE] Change Encode.list to take a encoder and list of values as parameters
Add an helper to map and encode list/array/seq
Jan 5, 2024
Currently, when you want to encode a
list
,array
,seq
, etc. this is the user responsibility to map its value into aJSON array
.If
Encode.list
was to accept an encoder as argument then we could move that responsibility inside of Thoth.Json.Core API.Note: Check if it is possible to change the
Encode.list
itself and still supports mixed types.Example:
I don't think it will be possible or it would add indirection in the code as the user would need to use a DUs to represents the different cases.
The text was updated successfully, but these errors were encountered: