Working on fixing this issue
This commit is contained in:
parent
e89694e24b
commit
b1624e3852
|
@ -65,7 +65,7 @@ open class StORM : StORMMirror {
|
||||||
return try! (v as! [String:Any]).jsonEncodedString()
|
return try! (v as! [String:Any]).jsonEncodedString()
|
||||||
default:
|
default:
|
||||||
// Here we will support new database types by returning what we need conforming to CustomStringConvertable.
|
// Here we will support new database types by returning what we need conforming to CustomStringConvertable.
|
||||||
return String(describing: v)
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,6 +89,7 @@ extension Array where Iterator.Element == Mirror {
|
||||||
var allChild : [Mirror.Child] = []
|
var allChild : [Mirror.Child] = []
|
||||||
for mirror in self {
|
for mirror in self {
|
||||||
mirror.children.forEach({ (child) in
|
mirror.children.forEach({ (child) in
|
||||||
|
print(child)
|
||||||
// Make sure our child has a label & the string describing the value is not nil. (Making optionals supported)
|
// Make sure our child has a label & the string describing the value is not nil. (Making optionals supported)
|
||||||
if !includingNilValues {
|
if !includingNilValues {
|
||||||
if child.label.isNotNil, String(describing: child.value) != "nil" {
|
if child.label.isNotNil, String(describing: child.value) != "nil" {
|
||||||
|
|
Loading…
Reference in New Issue