🌎 Utility package containing tools for byte manipulation, Codable, OS APIs, and debugging.
82
stars
50
forks
source link
ReflectionKeyedDecoder.decode() is not returning the "truthy" value when the context is active #200
Open
usatie opened 5 years ago
I think when the context is active, it should return the
reflected.1
. However currently it returnsreflected.0
.https://github.com/vapor/core/blob/master/Sources/Core/CodableReflection/ReflectionDecoders.swift#L144
The default implementation of ReflectionDecodable sets the .0 to be falsy value and .1 to be truthy value. eg.