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
Currently, nested data cannot be deserialized correctly:
julia> struct NestedData
id::Int
name::String
end
julia> struct Data
id::Int
nest::NestedData
end
julia> data = [Data(1,NestedData(2,"a"))]
1-element Vector{Data}:
Data(1, NestedData(2, "a"))
julia> csv = Serde.to_csv(data)
"id,nest_id,nest_name\n1,2,a\n"
julia> Serde.deser_csv(Data,csv)
ERROR: ParamError: parameter 'nest::NestedData' was not passed or has the value 'null'
Of course, this issue should be put on hold until we properly constrain Union types during serialization.
The text was updated successfully, but these errors were encountered:
NeroBlackstone
changed the title
Deserialize nested composite types
Deserialize CSV to nested composite types
May 8, 2024
Currently, nested data cannot be deserialized correctly:
Of course, this issue should be put on hold until we properly constrain Union types during serialization.
The text was updated successfully, but these errors were encountered: