-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional setter #475
Comments
There hasn't been much activity on this issue for a while so I'm gonna go ahead and consider it fixed. Please let us know it you'd like to reopen it. |
@ldiqual As far as I know, it's not fixed. I did an extension to work around this limitation
Of course I did a function of each data type supported. I can make a PR if you want to embrace this. Just let me know! |
I'd like to see optional setters support as well. @dral3x could you send a PR to try and get this going? |
Here it is the PR #784 |
More than 1 year has passed and this issue is still open. Thanks! |
I guess we have all moved to Swift4 support by now :/ |
Hi,
In our code we will generate a json representation of some entities. We would like to have setters that handle optional to NOT output "null" values but simply ignore the key-value all together.
For example, by doing
the result should be
{}
and not{"test":null}
Is there something already built-in for this?
The text was updated successfully, but these errors were encountered: