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 love Marshal and I'm a bit worried that maybe it's been abandoned, but hopefully you can help me with this:
I've lately started running into this error: Expected type MarshaledObject for key: node. Got 'Optional<Any>'. I can cast the object to [String:Any], but not to [MarshaledObject].
The failure is happening in Unmarshaling.swift:
extensionUnmarshaling{publicstaticfunc value(from object:Any)throws->ConvertibleType{
guard let convertedObject = object as?MarshaledObjectelse{throwMarshalError.typeMismatch(expected:MarshaledObject.self, actual:type(of: object))}
guard let value =tryself.init(object: convertedObject)as?ConvertibleTypeelse{throwMarshalError.typeMismatch(expected:ConvertibleType.self, actual:type(of: object))}return value
}}
If I print the type of the object in the debugger, it's:
(lldb) po type(of: any)
Swift.Optional<Any>
In the debugger it looks like this:
Swift 5 in Xcode 13b, but also happens in 12.5.1
Thanks!
The text was updated successfully, but these errors were encountered:
I love Marshal and I'm a bit worried that maybe it's been abandoned, but hopefully you can help me with this:
I've lately started running into this error:
Expected type MarshaledObject for key: node. Got 'Optional<Any>'
. I can cast the object to[String:Any]
, but not to[MarshaledObject]
.The failure is happening in
Unmarshaling.swift
:If I print the type of the object in the debugger, it's:
In the debugger it looks like this:
Swift 5 in Xcode 13b, but also happens in 12.5.1
Thanks!
The text was updated successfully, but these errors were encountered: