We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the readme of this github project, we have the following nice and correct example:
DCArrayMapping *mapper = [DCArrayMapping mapperForClassElements:[Tweet class] forAttribute:@"tweets" onClass:[User class]];
But on the website of Cocoapods https://cocoapods.org/pods/DCKeyValueObjectMapping The same code sample is wrong:
DCArrayMapping *mapper = [DCArrayMapping mapperForClassElements: :[Tweet class] forAttribute:@"tweets"] onClass:[User class]];
There is a useless : before [Tweet class] and and a useless ] after @"tweets"
:
[Tweet class]
]
@"tweets"
Edit: I just found a new error in both this readme and cocoapods: The following code sample doesn't compile:
DCParserConfiguration *config = [DCParserConfiguration configuration]; [config addArrayMapper:mapper]; DCKeyValueObjectMapping *parser = [[DCKeyValueObjectMapping mapperForClass:[User class] andConfiguration:configuration]; User *user = [parser parseDictionary:jsonParsed];
andConfiguration:configuration must be replaced by andConfiguration:config
andConfiguration:configuration
andConfiguration:config
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the readme of this github project, we have the following nice and correct example:
But on the website of Cocoapods https://cocoapods.org/pods/DCKeyValueObjectMapping
The same code sample is wrong:
There is a useless
:
before[Tweet class]
and and a useless]
after@"tweets"
Edit:
I just found a new error in both this readme and cocoapods:
The following code sample doesn't compile:
andConfiguration:configuration
must be replaced byandConfiguration:config
The text was updated successfully, but these errors were encountered: