Skip to content
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

ADD possibility to serialize NSNull values (opt-in) eventhough conver… #4

Merged
merged 5 commits into from
May 12, 2016

Conversation

Buju77
Copy link
Owner

@Buju77 Buju77 commented Apr 29, 2016

  • ADD possibility to serialize NSNull values (opt-in) eventhough converter.shouldIgnoreNullValues is set to YES. New JAGPropertyMapping method: nilPropertiesNotToIgnore
  • ADD nullability and generics to JAGPropertyMapping.h
  • MOD converted JAGOutputType to NS_ENUM
  • MOD increased minimum deployment target to 7.0 (was 5.0) (otherwise we couldn't use Swift in unit tests)

Not sure about the naming of the new protocol method and variables yet. Maybe you have better ideas? :)

…ter.shouldIgnoreNullValues is set to YES

ADD nullability and generics to `JAGPropertyMapping.h`
MOD converted `JAGOutputType` to `NS_ENUM`
MOD increased minimum deployment target to 7.0 (was 5.0) (otherwise we couldn't use Swift in unit tests)
@@ -277,16 +283,26 @@ - (NSDictionary*) convertToDictionary: (id) model {
propertyName = [propertyName asUnderscoreFromCamelCase];
}

// check if we need to convert nil values into NSNull
BOOL shouldIgnoreNilValues = self.shouldIgnoreNullValues;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's shouldIgnoreNilValue (singular) because it's only for this property

Yen-Chia Lin added 4 commits May 3, 2016 13:42
@Buju77 Buju77 merged commit 5c1f97d into master May 12, 2016
@Buju77 Buju77 deleted the 2016-04-feature-TriState branch May 12, 2016 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants