[Answered] Why are these _JSONKey initializers failable?

Code in question. Seems like these shouldn't be failable

cc @itaiferber

1 Like

These initializers are inherited from the CodingKey protocol, which defines them this way. The conformance could drop the optionality and still conform, but given that this is a fileprivate struct, I don't think it matters much either way.

2 Likes

Ah, I see. Just wondering, thanks!

1 Like