tristanhimmelman / ObjectMapper

Simple JSON Object mapping written in Swift
MIT License
9.14k stars 1.03k forks source link

Add `default` argument to Map's value(_) #1085

Closed emrcftci closed 4 years ago

emrcftci commented 4 years ago

Description

We can assign default value effortlessly with this new feature.

Motivation and Context

What kind of change does this PR introduce?

emrcftci commented 4 years ago

Could you please check? @tristanhimmelman

tristanhimmelman commented 4 years ago

I'm ok with this PR, but you will need to rebase master and get the tests passing again in Travis

emrcftci commented 4 years ago

I'm ok with this PR, but you will need to rebase master and get the tests passing again in Travis

I've rebased master into my branch but I accidentally take some commits from my other pull-request(#1081). So I've reverted these unwanted commits. Sorry for the mistake.

tristanhimmelman commented 4 years ago

No worries @emrcftci! Thanks for the contributions