Closed lkzhao closed 1 year ago
Optionals are supported.
Can you share your struct definition so that I can try to reproduce the error?
Are you still having issues with nil
values?
I couldn't reproduce the issue, and optionals are also covered by several test cases, which are all passing.
Did you use custom decoding logic?
Appears to be the same issue as #6.
Use encodeIfPresent(_,forKey:)
to prevent this issue
I ran into this error when trying to encode an struct with an optional value. Does the library support nil value encoding?