Swift Codable is an awesome feature that i'm using very regularly. But while working with it I found an issue.
So I have a basic struct like this:
And i tried to parse `Parent` with an undefined value from `Children`, i.e:
The issue is instead of receving a Parent instance with `childrean = nil`, it through me a serialization error:
Please refer to the playground file i attached below. Note that it will work if i define my own decode init function. (can just uncomment
function in the playground)