You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.
I've had time to take a deeper look into the code base. My thoughts are maybe there can be two operators: <~? for optional and <~! for non-optional. I think it's more immediately clear that way which operator does what, though I'm ok with <~~ and a non-optional type: <~~! or something.
I would also be more in favor of a init( json: JSON) as the protocol method than fromJSON, though I do understand its semantic equivalent in Encoder's toJSON
the referenced PRs take your suggestions into account. non-optional properties are now allowed by using forceDecode_ functions or by using the <~~! operator. Additionally, I did like the idea of having to initialize with JSON, so the Decodable protocol was updated to reflect that.
Suggested by @Haud
The text was updated successfully, but these errors were encountered: