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

Support multi-key merging #21

Closed
jeffh opened this issue Feb 10, 2014 · 1 comment
Closed

Support multi-key merging #21

jeffh opened this issue Feb 10, 2014 · 1 comment

Comments

@jeffh
Copy link
Owner

jeffh commented Feb 10, 2014

Provide a declarative way to merge object keys into an object. e.g.

{
    "text": "First",
    "date": "2013-12-22",
    "time": "14:23:45"
}

And then do something like (magic code):

HYDMapObject(HYDRootMapper, [Post class],
    @{@"text": @"text",
      HYDAccessKey(@"date", @"time"): HYDMapStringToDateFormatter(HYDMapArrayToString(@"date", @"T"), HYDDateFormatRFC3339)}
);
@jeffh
Copy link
Owner Author

jeffh commented Feb 14, 2014

This is supported as of e79e5e0, although there's not much assistance in Hydrant after an accessor emits an array right now.

@jeffh jeffh closed this as completed Feb 14, 2014
@jeffh jeffh added this to the Version 1.0 milestone Feb 24, 2014
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

No branches or pull requests

1 participant